waitron
Monster child of callback and semaphore without any promises
Monster child of callback and semaphore without any promises
A series of benchmarks comparing the performance of different asynchronous processing libraries and styles in JavaScript.
Higher-order functions and common patterns for asynchronous code
Helper function to make dealing with nodejs error a little bit nicer
Node library template package with full ESM support. All features available as npm scripts: Jest testing. Rollup build. Rename package - affecting all relevant files. Readme generator. Markdown and HTML API-documentation. Npm publish and version bumping.
Node library template package with full ESM support. All features available as npm scripts: Jest testing. Rollup build. Rename package - affecting all relevant files. Readme generator. Markdown and HTML API-documentation. Npm publish and version bumping.
Find all indexes at which an array element exists, by binary search.
Find the array index of where to add an element to keep it sorted.
Remove all duplicate elements in a sorted array, leaving only uniques.
Check whether a condition is true for any element of an array. The condition check is in the form of a callback.
Node library template package with full ESM support. All features available as npm scripts: Jest testing. Rollup build. Rename package - affecting all relevant files. Readme generator. Markdown and HTML API-documentation. Npm publish and version bumping.
Returns true if the predicate is satisfied for every element of the passed array; otherwise false.
Return the last element of an array where the callback returns true.
Sort an array considerably faster than the native Array.prototype.sort as a drop-in replacement. Fork of of the famous timsort module, but this module allows for passing comparator-builder options instead of a comparator function. In short, advanced compa
Node library template package with full ESM support. All features available as npm scripts: Jest testing. Rollup build. Rename package - affecting all relevant files. Readme generator. Markdown and HTML API-documentation. Npm publish and version bumping.
For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator
Binary search -based indexOf for sorted arrays.
Iterate an array in reverse.
Return the index of the first element of an array where the callback returns true. Returns -1 if none do.
Utility functions for calling callbacks on mocked functions with jest.