min-is

Check if a value is something

  • min-is

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
min-is
202.2.15 years ago8 years agoMinified + gzip package size for min-is in KB

Readme

min-is
!Build statustravis-imagetravis-url !NPM versionnpm-imagenpm-url !Downloadsdownloads-imagedownloads-url !Dependency Statusdavid-imagedavid-url
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

!Licenselicense-imagelicense-url