kitify
v0.2.0
Published
kitify is a JavaScript utility library that provides a whole mess of useful helper functions and supports modularity.
Downloads
73
Maintainers
Readme
kitify
kitify
(kit + ify
) is a JavaScript utility library that provides a whole mess of useful helper functions and supports modularity.
kitify
是一个 JavaScript 工具函数包,它提供了一大堆有用的辅助工具函数, 并支持模块化。
Installation
npm install kitify
Usage
import { isType, isObject, isFunction } from 'kitify'
// or
import { isType, isObject, isFunction } from 'kitify/type'
isObject({}) // true
isFunction(() => {})) // true
isType(123) // number
isType('hello', 'string') // true
API
type
import { isType } from 'kitify/type'
console.log(isType({})) // object
console.log(isType([], 'array')) // true
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.