@whisklabs/typeguards
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

TypeGuards

Install

npm i @whisklabs/typesguards

Usage

import { ... } from '@whisklabs/typesguards';

Functions

  • isPresent - not undefined or null
  • isUndefined - undefined value
  • isDefined - not undefined value
  • isObject - object with Generic support
  • isString - string value
  • isNumber - number value
  • isNaN - NaN value
  • isDate - Date object
  • isArray - Array with Generic support
  • isError - any Error types
  • isErrorEvent - Error Event
  • isFunction - any function
  • isRegExp - RegExp value
  • isText - non empty string
  • isBoolean - boolean value
  • isWindow - window object
  • isFile - File object
  • isFormData - Form Data object
  • isBlob - blob value
  • isPromiseLike - Promise-like object
  • isArrayBuffer - any type of ArrayBuffer
  • isTypedArray - any type of TypedArray

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i @whisklabs/typeguards

    Weekly Downloads

    1,031

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • samsungfood
    • max.kostuchenko.samsungfood
    • a.k.samsungnext