@muyi086/var-type
v1.0.6
Published
JS variable type checking
Downloads
1
Maintainers
Readme
var-type
Install
npm install @muyi086/var-type
# common JS
const varType = require('@muyi086/var-type')
# es6
import varType from '@muyi086/var-type'
Use
// isArray
const a = null
varType.isArray(a)
varType['isArray'](a)
// isArrayBuffer
varType.isArrayBuffer(a)
// isBlob
varType.isBlob(a)
// isBoolean
varType.isBoolean(a)
// isDate
varType.isDate(a)
// isFile
varType.isFile(a)
// isFormData
varType.isFormData(a)
// isFunction
varType.isFunction(a)
// isMap
varType.isMap(a)
// isNull
varType.isNull(a)
// isNumber
varType.isNumber(a)
// isObject
varType.isObject(a)
// isRegExp
varType.isRegExp(a)
// isSet
varType.isSet(a)
// isString
varType.isString(a)
// isURLSearchParams
varType.isURLSearchParams(a)
// isUndefined
varType.isUndefined(a)
// isWeakMap
varType.isWeakMap(a)
// isWeakSet
varType.isWeakSet(a)
// isBuffer
varType.isBuffer(a)
// isStream
varType.isStream(a)
// isProxy
varType.isProxy(a)