Package Exports
- cc-typejs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cc-typejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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