Functional library for Javascript
npm i --save-exact @leeruniek/functies
import { pipe, trim, split, dropLast, push, join } from "@leeruniek/functies"
const removeTrailingSlash = source =>
source[source.length - 1] === sep ? source.slice(0, -1) : source
const renameFile = newName => pipe(
removeTrailingSlash,
split(sep),
dropLast,
push(trim(sep)(newName)),
join(sep)
)
git clone [email protected]:leeruniek/functies.git && \
cd m && \
npm run setup
# run tests (any `*.test.js`) once
npm test
# watch `src` folder for changes and run test automatically
npm run tdd
See documentation for the awesomeness that we are.
History of all changes in CHANGELOG.md
debounce
- docstring, react example, signature changed
- Remove docstring from test files
- Add
@see
where suitable deepEqual
,elapsedTIme
,distinct
,endsWith
,findIndexBy
,find
- add docstringanyBy
,allBy
,countBy
,filter
,filterBy
,findBy
,remove
- add docstring & testsclone
- add docstring & tests, simpler rewrite, added to main indexescape
,escapeHTML
,escapeRegExp
- move into same file, add docstringfindFiles
- add deprecation notice (useglob
)
checkType
- unused