@zerfo/utils
v0.4.0
Published
Fast, small and purely functional utility library
Maintainers
Readme
Zerfo Utils

Fast, small and purely functional utility library
Install
npm
$ npm install @zerfo/utils
yarn
$ yarn add @zerfo/utilsFeatures
- Fast
- Small
- Fully tested
- Documented
- Purely functional
- Modern codebase
Functions of the library
- capitalize - Returns the capitalized version of a string.
- formatSum - Returns the formatted value.
- formatSum - Сhecks the userAgent of the user's browser and returns the platform used.
- isArray - Checks if
testis array. - isBoolean - Checks if
testis boolean. - isEmpty - Checks if
testis empty. - isEqual - Returns
trueif its arguments are equivalent,falseotherwise. - isFunction - Checks if
testis function. - isNil - Checks if
testis nil (null or undefined). - isNumber - Checks if
testis number. - isObject - Checks if
testis object. - isPalindrome - Checks if given
stris a palindrome. - isPromise - Checks if
testis Promise. - isShallowEqual - Returns
trueif its arguments are equivalent is shallow equal terms,falseotherwise. - isStrictEqual - Returns
trueif its arguments are equivalent is same value zero terms,falseotherwise. - isString - Checks if
testis string. - isUndefined - Checks if
testisundefined. - negate - Negates it is argument
- upperFirst - Converts the first character of string to upper case and returns the new string.
Benchmarks
$ npm run benchmarkBrowser support
- Chrome >= 40
- Firefox >= 52
- Edge >= 14
- IE >= 11
- Safari >= 10
- iOS >= 10
- Android >= 4.4
Node support
- 6.4.0 and higher
Bundle size
| Library | Unpacked Size | | --- | --- | | lodash | 1.41 MB | | ramda | 1.17 MB | | @zerfo/utils | 35.5 kB |
