Fast, small and purely functional utility library for TypeScript.
# npm
npm i @unboxing/unboxing
# yarn
yarn add @unboxing/unboxing
# pnpm
pnpm i @unboxing/unboxing
- Fast
- Small
- Fully Tested
- Purely functional
- Modern codebase
- @unboxing/object – for objects
- @unboxing/string – for strings
- @unboxing/promise – for promises
- @unboxing/array – for arrays or array-like objects
- @unboxing/function – for functions – composition, currying and so on, also a set of simple functions (noop, T, F)
- @unboxing/is – set of type checking methods
- @unboxing/unboxing – root contains utilities which don't satisfy any of the above categories or are universal
import {pathOr,compose,toLower,map} from '@unboxing/unboxing'
const toLowerName = compose(
toLower,
pathOr(['name'], '')
)
const result = map(toLowerName)([{name: 'testA'}, {name: 'testb'}])