1.0.2 • Published 6 years ago

zhf.data-type v1.0.2

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

数据类型

const datatType = require('zhf.data-type');
datatType.isString('9') // true
datatType.isNumber(9) // true
datatType.isBoolean(true) // true
datatType.isArray([]) // true
datatType.isNull(null) // true
datatType.isUndefined(undefined) // true
datatType.isObject({}) // true
datatType.isDate(new Date()) // true
datatType.isRegExp(new RegExp()) // true
datatType.isRegExp(/a/) // true
datatType.isFunction(function(){}) // true
datatType.isMap(new Map()) // true
datatType.isSet(new Set()) // true
datatType.isPromise(new Promise(function(){})) // true
datatType.isError(new Error()) // true
datatType.isSymbol(Symbol()) // true
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago