JSPM

@bisham/predicates

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

Strongly Typed Predicate Functions.

Package Exports

  • @bisham/predicates
  • @bisham/predicates/dist/index.js

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

Readme

Common Predicates

Functions

  1. isOnline() when runned in browser environment, then returns online status, when runned in nodejs then returns null

  2. isEmpty(value) returns true if either the argument is null or undefined

  3. isNotEmpty(value) returns true if neither the argument is null nor undefined

  4. isBrowser() return if the current environment is browser or not

  5. isString(value), isFunction(value), isNumber(value), isUndefined(value), isNull(value), isObject(value), isBoolean(value)