cc-typejs

1.0.4 • Public • Published

type

Javascript data type check true or false.

Usage

import type from 'cc-typejs'

type.isNull(null) // true
type.isUndefined(undefined) // true
type.isObject({}) // true
type.isArray([]) // true
type.isString('') // true
type.isNumber(1) // true
type.isBoolean(true) // true
type.isFunction(() => {}) // true
type.isRegExp(/a/) // true
type.isSymbol(Symbol()) // true
import { isNull } from 'cc-typejs'
isNull(null) // true

/cc-typejs/

    Package Sidebar

    Install

    npm i cc-typejs

    Weekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    2.18 kB

    Total Files

    3

    Last publish

    Collaborators

    • chuichui