Displaying 1 to 20 from 21 results

unique-random-array - Get consecutively unique elements from an array

  •    Javascript

Useful for things like slideshows where you don't want to have the same slide twice in a row.Returns a function that when called will return a random element that's never the same as the previous.

sort-on - Sort an array on an object property

  •    Javascript

Returns a new sorted array.The string can be a dot path to a nested object property. Prepend it with - to sort it in descending order.




array-move - Move an array item to a different position

  •    Javascript

Returns a new array with the item moved to the new position.Moves the item to the new position in the input array. Useful for huge arrays where absolute performance is needed.


arrify - Convert a value to an array

  •    Javascript

Supplying null or undefined results in an empty array.

arr-diff - Returns an array with only the unique values present in all given arrays using strict equality for comparisons

  •    Javascript

Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons. Returns the difference between the first array and additional arrays.

arr-flatten - Recursively flatten an array or arrays

  •    Javascript

Recursively flatten an array or arrays. I wanted the fastest implementation I could find, with implementation choices that should work for 95% of use cases, but no cruft to cover the other 5%.

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

  •    Javascript

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.

array-sort - Fast and powerful array sorting

  •    Javascript

Fast and powerful array sorting. Sort an array of objects by one or more properties. Any number of nested properties or custom comparison functions may be used. If custom functions are supplied, array elements are sorted according to the return value of the compare function. See the docs for Array.sort() for more details.

filter-object - Return a copy of an object, filtered to have only keys that match the given glob patterns

  •    Javascript

Filter an object by its keys or values. Returns a copy of an object filtered to have only keys or values that match the given glob patterns. See glob-object and/or filter-values for the full range of options and available features.

map-arr - MOVED! See link :point_right:

  •    Javascript

My motivation for faster-than-native Array.prototypes continued! This module is part of the bunch. Although the collection is still actively WIP, you may go here for further updates.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.