error-if-not-string

2.0.0 • Public • Published

errorIfNotString(arg): void

Triggers error "Input must be string" if arg is not a string.

Installation

npm i error-if-not-string

Loading

import { errorIfNotString } from 'error-if-not-string';

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i error-if-not-string

      Weekly Downloads

      0

      Version

      2.0.0

      License

      MIT

      Unpacked Size

      2.15 kB

      Total Files

      4

      Last publish

      Collaborators

      • writetome51