Skip to content

chunpu/min-is

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check if a value is something

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published