JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 189
  • Score
    100M100P100Q78990F
  • License MIT

Is utils functions for validate !

Package Exports

  • is-all-utils

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 (is-all-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Is all utils

they are functions to validate types!

Usage

import {
  isObject,
  isArray,
  isNumber,
  isString,
  isClass,
  isRegex,
  isBoolean,
  isUndefined,
  isNull,
  isFunction,
} from "is-all-utils";

// Object
isObject([425, 235, 5]); // => false
isObject({
  year: 2020,
}); // => true

// Array
isArray([1, 23, 515]); // => true

// Number
isNumber(516); // => true
isNumber(NaN); // => true

// String
isString("yoni-calsin"); // => true

// Class
isClass(class {}); // => true

// Regex
isRegex(/7/); // => true

// Boolean
isBoolean(false); // => true
isBoolean(true); // => true

// Undefined
isUndefined(undefined); // => true
isUndefined(null); // => false

// Null
isNull(null); // => true
isNull(undefined); // => false

// Function
isFunction(function () {
  // Here your code !
}); // => true

isFunction(class {}); // => false

⭐ Support for

is-all-utils is an open source project licensed by MIT. You can grow thanks to the sponsors and the support of the amazing sponsors. If you want to join them, contact me here.

🎩 Stay in touch

Contributors

Thanks to the wonderful people who collaborate with me !

📜 License

is-all-utils under License MIT.