Search results
407 packages found
An ES-spec-compliant (proposed) Array.prototype.at shim/polyfill/replacement that works as far down as ES3
- Array.prototype.at
- Array.prototype.item
- String.prototype.at
- String.prototype.item
- item
- at
- array
- shim
- polyfill
- es-shim
- API
Remove array item(s) by value
A random weighted item chooser with custom seed option for JavaScript and TypeScript.
Queue, ArrayQueue. Javascript & Typescript Data Structure.
remove items from a javascript array without generating memory garbage
Get the longest item in an array.
Loop an array backwards! Give loopBackwards() an array and a callback. Calback provides the current item, a splice function, and the current index. Splice function removes item from the array. If the splice function is called & the current item is a DOM e
Given an array, removes specified elements and returns the modified array
A basic array observer which listen's for array item changes
to find any item from required array
A helper function to check if an item is an array and add it if not.
Give eachr an item to iterate (array, object or map) and an iterator, then in return eachr gives iterator the value and key of each item, and will stop if the iterator returned false.
- array
- browser
- cycle
- deno
- deno-edition
- deno-entry
- denoland
- each
- es2022
- es5
- export-default
- flow
- forEach
- map
- View more
Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.
- array to tree
- list to tree
- unflatten
- array-helper
- array-manipulations
- data-structures
- datastructures
- algorithms
- tree-structure
- array
- list
- collection
- pointer
- parent
- View more
auto remove elements out of an array with timer
Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.
- array to tree
- list to tree
- unflatten
- array-helper
- array-manipulations
- data-structures
- datastructures
- algorithms
- tree-structure
- array
- list
- collection
- pointer
- parent
- View more
Visit a method over the items in an object, or map visit over the objects in an array.
Deduplicates items in an array
A small JavaScript function for grouping items in an array.
Move an array item to a different position within array bounds
Get a random item from a list