est
v0.2.1-alpha
Published
ES module friendly type checker
Downloads
2,077
Readme
est
🔬 Experimental
ES module friendly type checker, tiny utility functions with TypeScript definition. So you can import
only the required type-checking functions you need and the rest will be removed by tree-shaking. Size is the primary concern of this module.
Roadmap
- [x] noop
- [x] identity (returns the first argument)
- [x] always (takes
T
and returns() => T
) - [x] isString
- [x] isNumber
- [x] isBoolean
- [x] isObject
- [x] isFunction
- [x] isSymbol
- [x] isArray (alias only)
- [x] isArrayLike
- [x] isEmptyArray
- [x] isNull
- [x] isUndefined
- [ ] isDate
- [ ] isRegExp
- [ ] isError
- [ ] isNaN
- [ ] isSafari
- [ ] isChrome
- [ ] isEdge
- [ ] isPlainObject
- [x] ensureArray