JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q7488F
  • License ISC

Javascript data type check true or false.

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