js-helpers

Is

Short-cut to isArray, isObject, isString, and isTruthy.

Use

import {
  Is,
  isArray,
  isObject,
  isString,
  isTruthy,
} from "@taystack/js-helpers";

// Is.array === isArray;
// Is.object === isObject;
// Is.string === isString;
// Is.truthy === isTruthy;

Is.array([]) === isArray([])       // true
Is.object({}) === isObject({})     // true
Is.string("") === isString("")     // true
Is.truthy(true) === isTruthy(true) // true

Source: @taystack/js-helpers hosted on GitHub Author: taystack