utils.js
utils.js copied to clipboard
Fast, small and purely functional utility library
### Bug Report Hi everybody, nice lib. I've found a small bug with [isEqual](https://github.com/TinkoffCreditSystems/utils.js/blob/master/src/is/equal.ts). 
It doesn't works ```ts pathOr(['data', 'categories'], [], result); ```
Очень часто нужно добавить элемент в массив по индексу и вернуть новый массив. Такое простое действие каждый раз порождает неприятные конструкции в коде: ``` const newArray = [...array] newArray.splice(index, 0,...
It's very popular use case to write boilerplate: ` import isEmpty from 'is/empty'; import complement from 'function/complement'; const notEmpty = complement(isEmpty) // or "isNotEmpty" name ... `
In some cases i need converge function, f.e. ` const extractOfferSuggestions = pathOr(["offerSuggestions"], []); const extractWordSuggestions = pathOr(["wordSuggestions"], []); const mapSuggestionsToOptions = (suggestions): SuggestOption[] => []; // without converge const...
Removes [node-notifier](https://github.com/mikaelbr/node-notifier). It's no longer used after updating ancestor dependency [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest). These dependencies need to be updated together. Removes `node-notifier` Updates `jest` from 24.9.0 to 29.6.2 Release notes Sourced from...
Bumps [yargs-parser](https://github.com/yargs/yargs-parser) to 20.2.9 and updates ancestor dependency [ts-jest](https://github.com/kulshekhar/ts-jest). These dependencies need to be updated together. Updates `yargs-parser` from 10.1.0 to 20.2.9 Release notes Sourced from yargs-parser's releases. yargs-parser yargs-parser-v20.2.9...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5. Release notes Sourced from word-wrap's releases. 1.2.5 Changes: Reverts default value for options.indent to two spaces ' '. Full Changelog: https://github.com/jonschlinkert/word-wrap/compare/1.2.4...1.2.5 1.2.4 What's Changed...
Bumps [jsdom](https://github.com/jsdom/jsdom) from 15.2.1 to 16.5.0. Release notes Sourced from jsdom's releases. Version 16.5.0 Added window.queueMicrotask(). Added window.event. Added inputEvent.inputType. (diegohaz) Removed ondragexit from Window and friends, per a spec...