1.1.0 • Published 4 years ago

check-var-types v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

check-var-types

a little library for check js var types

install

npm install check-var-types -S

example

import checkVarType from 'check-var-types'
  
checkVarType.check('number',123) //true
checkVarType.check('symbol',Symbol(1)) //true
checkVarType.check('null,undefined',null) //true
checkVarType.check('date|regexp',new Date()) //true

API

  • check
  • checkString
  • checkNumber
  • checkBoolean
  • checkDate
  • checkRegExp
  • checkFunction
  • checkSymbol
  • checkNull
  • checkUndefined
  • checkObject
  • checkArray

License

© 2020-present, Fu Quanmeng

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago