min-is

2.2.1 • Public • Published

min-is

Build status NPM version Downloads Dependency Status

Check if a value is something

Installation

npm i min-is

Api

helper
  • is.browser detect is browser
  • is.h5 simple modern browser detect
  • is.mobile detect mobile browser or pc browser
  • is.wechatApp detect wechat app
basic function
  • is.owns, short for Object.prototype.hasOwnProperty.call
  • is.bool
  • is.number
  • is.integer
  • is.decimal
  • is.undef
  • is.hash is.plainObject
  • is.object
  • is.fn
  • is.string
  • is.array
  • is.arraylike
  • is.empty
  • is.element
  • is.regexp
  • is.nan, only NaN is true, other is false, unlike isNaN

Merge Api

  • is.iod is int or decimal
  • is.oof is object or function
  • is.nos is number or string

Advance

  • is._class, short for Object.prototype.toString.call(value)
  • is._type, short for typeof value

License

License

/min-is/

    Package Sidebar

    Install

    npm i min-is

    Weekly Downloads

    633

    Version

    2.2.1

    License

    ISC

    Unpacked Size

    42.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • ftft1885