@wahfung/is-what

0.0.6 • Public • Published

@wahfung/is-what

Tiny javescript type check functions!

Install

npm install @wahfung/is-what

Usage

Type check functions:

import {isString, isUndefined, isArray} from '@wahfung/is-what'

isString('') // true
isNumber(10) // true
isBoolean(false) // true
isUndefined(undefined) // true
isNull(null) // true
isArray([]) // true
isObject({}) // true

Number check functions:

import {isNegativeNumber, isNegativeZero} from '@wahfung/is-what'

isPositiveNumber(1) // true
isNegativeNumber(-1) // true
isPostiveZero(0) // true
isNegativeZero(-0) // true

Package Sidebar

Install

npm i @wahfung/is-what

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

11.1 kB

Total Files

4

Last publish

Collaborators

  • wahfung