Displaying 1 to 18 from 18 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.

arr-map - Faster, node.js focused alternative to JavaScript's native array map.


Faster, node.js focused alternative to JavaScript's native array map. JavaScript's native Array.map() is slow, and other popular array map libraries are focused on browser compatibility, which makes them bloated or less than idea for non-browser usage. This implementation is focused on node.js usage keeping it light and fast.

for-in - Iterate over the enumerable properties of an object, and return an object with properties that evaluate to true from the callback


Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js

objectify-array - Recursively convert arrays of objects into a single keyed object tree


you can specify options.by to be a function, this function will receive the element and should return the key to be used for this element.

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.