Displaying 1 to 14 from 14 results

chillout - Reduce CPU usage in JavaScript

Reduce JavaScript CPU usage by asynchronous iteration. Provides asynchronous iteration functions that have a Promise based interface and it can execute with low CPU usage. Each iteration adds delay if the processing is heavy to maintain the CPU stability. Iterate without delay if processing is fast. Therefore, it will realize friendly processing for your machine. It can execute JavaScript without "Warning: Unresponsive Script" alert in the browser.

p-times - Run promise-returning & async functions a specific number of times concurrently

Returns a Promise that is fulfilled when all promises returned from mapper are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the fulfilled values returned from mapper in order.Number of times to call mapper.

rr - A simple JavaScript component to iterate an array round robin.

A simple JavaScript component to iterate an array round robin.Sometimes you want to loop over an array and start at the beginning again.

each-async - Async concurrent iterator (async forEach)

Like async.each(), but tiny.I often use async.each() for doing async operations when iterating, but I almost never use the other gadzillion methods in async.

filter-obj - Filter object keys and values into a new object

Source object to filter properties from.Array of properties that should be filtered from the object or a filter function. The function has the signature filterFn(sourceKey, sourceValue, source).

js-sorted-set - Sorted set data structures in JavaScript

... this works, but it's a bit cryptic and some operations--notably iterate-- will be very slow with large sets. You can npm install js-sorted-set or bower install js-sorted-set. Alternatively, just download sorted-set.js from this directory.

genData - A normalization pattern to build, query, and manipulate everything.

An iteration utility with a rich callback environment. genData iterates a queue, beginning with the first parameter, then it's non-inherited members, then their non-inherited members, and so on - recursively and in depth-first order. Below is what genData outputs when a callback simply returns the current iteration value.

character-iterator - Iterate through text characters in the DOM tree

Iterate through text characters in the DOM tree. Handles parent & sibling relationships. Get the next character in the DOM starting at el with offset. If offset isn't specified it starts at 0. You can also set an optional root to contain the iterator.