pure-fns
v1.0.0
Published
<!-- prettier-ignore-start -->
Downloads
1
Readme
pure-fns
Features
TODO: write this secion
Installation
npm install --save pure-fns
TODO: write this secion
Usage
TODO: write this secion
Philosophies
composition is good, currying is bad good names
Rules
- type-safe w/ typescript & tsdoc
- 100% tested
- zero dependencies
- native es modules
- no transpilation
- use modern apis (Set, Map, etc.) where appropriate
- don't carry over bad function names just for familiarity. instead, reference other projects functions that are similar to our own
TODOs:
Name Ideas
- omitKeys
- omitIndices/omitIndexes
- omitValues
- omitFirst
- omitLast
- isString
- isArray
- isNull
- isUndefined
- isNullish
- hasKey
- hasIndex
- hasValue
- firstKey
- nthKey
Lodash Functions
- [x] chunk
- ~~compact~~
- ~~concat~~
- [x] difference
- [ ] differenceBy
- [ ] differenceWith
- [ ] ~~drop~~
- [ ] ~~dropRight~~
- [ ] dropRightWhile
- [ ] dropWhile
- [ ] ~~fill~~
- [ ] ~~findIndex~~
- [ ] ~~findLastIndex~~
- [x] first (as firstValue)
- [ ] ~~flatten~~
- [ ] ~~flattenDeep~~
- [ ] ~~flattenDepth~~
- [ ] ~~fromPairs~~
- [x] head (as "firstalue")
- [ ] ~~indexOf~~
- [ ] initial (as "omitLast")
- [ ] intersection
- [ ] intersectionBy
- [ ] intersectionWith
- [ ] ~~join~~
- [ ] last (as "lastValue")
- [ ] ~~lastIndexOf~~
- [ ] nth (as "nthValue")
- [ ] pull (as "omitValues")
- [ ] pullAll (as "omitValues")
- [ ] pullAllBy
- [ ] pullAllWith
- [ ] pullAt
- [ ] remove
- [ ] ~~reverse~~
- [ ] ~~slice~~
- [ ] sortedIndex
- [ ] sortedIndexBy
- [ ] sortedIndexOf
- [ ] sortedLastIndex
- [ ] sortedLastIndexBy
- [ ] sortedLastIndexOf
- [ ] sortedUniq
- [ ] sortedUniqBy
- [ ] tail (as "omitLast")
- [ ] ~~take~~
- [ ] ~~takeRight~~
- [ ] takeRightWhile
- [ ] takeWhile
- [ ] union
- [ ] unionBy
- [ ] unionWith
- [ ] uniq
- [ ] uniqBy
- [ ] uniqWith
- [ ] unzip
- [ ] unzipWIth
- [ ] without (as omitValues)
- [ ] xor
- [ ] xorBy
- [ ] xorWith
- [ ] zip
- [ ] zipObject
- [ ] zipObjectDeep
- [ ] zipWith
Contributors
This project follows the all-contributors specification. Contributions of any kind welcome!