JSPM

Found 9803 results for array similarity

dank-map

A map function that can map over almost anything.

  • v0.1.0
  • 39.47
  • Published

sort-by

Sort objects by property names using native Array.sort()

  • v1.2.0
  • 39.45
  • Published

dank-each

A function for iterating over objects, arrays, strings and ranges

  • v1.0.0
  • 39.39
  • Published

hifo

Remembers the highest/lowest values in a data set of any size.

  • v1.0.0
  • 39.39
  • Published

circularr

Circular fixed size array

  • v0.3.0
  • 39.33
  • Published

data-bind-mapper

Bind data arrays to any type of JS objects

  • v1.0.3
  • 39.27
  • Published

make-unique

Creates and makes an array without duplicates. Even with array of objects with a specified matcher.

  • v1.0.4
  • 39.27
  • Published

parallel-each

A parallel, asynchronous implementation of forEach in ES6 with a configurable maximum degree of parallelism.

  • v1.1.7
  • 39.26
  • Published

group-array

Group array of objects into lists.

  • v1.0.0
  • 39.23
  • Published

sparse-array

Sparse array implementation in JS with no dependencies

  • v1.3.2
  • 39.01
  • Published

list-to-array

Simple javascript lib for converting a [comma || space] delimited string to an array

  • v1.1.0
  • 38.89
  • Published

sort-es

Blazing fast, tree-shakeable, type-safe, modern utility library to sort any type of array in less than 1 KB!

  • v1.7.16
  • 38.82
  • Published

array-shuffle

Randomize the order of items in an array

  • v3.0.0
  • 38.73
  • Published

@bbob/parser

A BBCode to AST Parser part of @bbob

  • v4.2.0
  • 38.58
  • Published

notation

Utility for modifying / processing the contents of Javascript objects or arrays via object notation strings or globs.

  • v2.0.0
  • 38.58
  • Published

just-compare

compare two collections

  • v2.3.0
  • 38.54
  • Published

starts-with

Returns `true` if the given string or array starts with prefix using strict equality for comparisons. Using fastest implementation.

  • v1.0.2
  • 38.53
  • Published

clz-buffer

Count leading zeros in a Buffer (clz)

  • v1.0.0
  • 38.47
  • Published

ends-with

Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.

  • v1.0.1
  • 38.42
  • Published

utils-flatten

flatten() utility function

  • v1.0.0
  • 38.42
  • Published

an-array

Check if an object is an array or a typed array

  • v1.0.0
  • 38.30
  • Published

array.prototype.at

An ES-spec-compliant (proposed) Array.prototype.at shim/polyfill/replacement that works as far down as ES3

  • v1.1.3
  • 38.18
  • Published

string-replace-to-array

Works like String.prototype.replace but outputs an array. Useful for replacing parts of the string with objects of other types.

  • v2.1.1
  • 38.09
  • Published

obop

MongoDB-style object operators makes array manipulation easy: where/order/update/view

  • v1.0.0
  • 38.00
  • Published

arr-swap

Swap two items in an array. Does not modify the Array prototype.

  • v1.0.1
  • 37.87
  • Published

array.partial

When you want array.some but not array.every. Useful when you need to determine partially selected states - like partially selecting tree nodes when some but not all child nodes are checked.

  • v1.0.5
  • 37.85
  • Published

combinations

find all combinations from array

  • v1.0.0
  • 37.82
  • Published

fast-array-diff

Implementation of paper 'An O(ND) Difference Algorithm and Its Variations' on array

  • v1.1.0
  • 37.73
  • Published

to-array-buffer

Convert any binary data to ArrayBuffer

  • v3.2.0
  • 37.70
  • Published

each-parallel-async

Asynchronously calls a function on each element in an array in parallel.

  • v1.0.0
  • 37.69
  • Published

p-series

Run promise-returning & async functions in series

  • v3.0.0
  • 37.64
  • Published

states-us

List of US states and territories.

  • v1.1.1
  • 37.57
  • Published

toggle-array

In an array of objects, this enables a property on the object at the specified index, while disabling the property on all other objects.

  • v1.0.1
  • 37.50
  • Published

array-keyed-map

a map from arrays of values to values

  • v2.1.3
  • 37.48
  • Published

array-index

Invoke getter/setter functions on array-like objects

  • v1.0.0
  • 37.46
  • Published

just-unique

dedupes an array

  • v4.2.0
  • 37.41
  • Published

feature-detect-es6

Detect which ES6 (ES2015 and above) features are available

  • v1.5.0
  • 37.31
  • Published

chunk

Chunk converts arrays like `[1,2,3,4,5]` into arrays of arrays like `[[1,2], [3,4], [5]]`.

  • v0.0.3
  • 37.27
  • Published

arrayify-compact

Casts the given value to a flatten array, and removes falsey items (similar to lodash compact).

  • v0.2.0
  • 37.18
  • Published

any

Returns `true` if a value exists in the given string, array or object.

  • v1.0.0
  • 37.09
  • Published

utf8-length

return the number of bytes in a unicode string

  • v0.0.1
  • 37.04
  • Published

utils-indexof

Returns the first index at which a given element can be found.

  • v1.0.0
  • 37.02
  • Published

deep-map

Transforms nested values of complex objects

  • v2.0.0
  • 37.01
  • Published

get-depth

Get the Depth of a Multi-Dimensional Array of Values

  • v0.0.3
  • 37.00
  • Published

calc-stats

Memory-Aware Statistical Calculations

  • v2.6.0
  • 36.96
  • Published

arr-pluck

Retrieves the value of a specified property from all elements in the collection.

  • v0.1.0
  • 36.93
  • Published

is-blank

Check whether a value is empty or blank, includes string whitespace support

  • v2.1.0
  • 36.81
  • Published

iter-fun

Fun with Iterables

  • v0.2.0
  • 36.75
  • Published

qsu

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

  • v1.10.1
  • 36.70
  • Published

xdim

Multi-Dimensional Functions. Create, Query, and Transform Multi-Dimensional Data.

  • v1.10.1
  • 36.69
  • Published

shuffle-seed

Shuffle Array based on a Seed

  • v1.1.6
  • 36.67
  • Published

fast-min

Quickest Way to get the Minimum Value of an Array of Numbers (Typed or Untyped)

  • v0.4.0
  • 36.66
  • Published

cartesian-product

Compute the cartesian product of an array.

  • v2.1.2
  • 36.65
  • Published

usa-states

Helper library for getting all of the states and territories of the United States in the specific format that you need.

  • v0.0.6
  • 36.62
  • Published

path-array

Treat your $PATH like a JavaScript Array

  • v1.0.1
  • 36.54
  • Published

zip-object

Create an object from from arrays of keys and values

  • v0.1.0
  • 36.51
  • Published

deep-map-keys

Transforms nested keys of complex objects

  • v2.0.1
  • 36.50
  • Published

indexed-filter

Array#filter() with also detecting indexes of filtered values

  • v1.0.3
  • 36.45
  • Published

to-choices

Easily create a normalized inquirer choices question. Supports all of the `choices` question types: checkbox, list, rawlist, expand

  • v0.2.0
  • 36.44
  • Published

map-o

Array-map like function for objects.

  • v2.0.11
  • 36.43
  • Published

fast-max

Quickest Way to get the Maximum Value of an Array of Numbers (Typed or Untyped)

  • v0.5.1
  • 36.41
  • Published

performant-array-to-tree

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.

  • v1.11.0
  • 36.41
  • Published

hashmap

HashMap Class for JavaScript

  • v2.4.0
  • 36.38
  • Published

did-you-mean

Fuzzy match a command from a list (typo-safety)

  • v0.0.1
  • 36.38
  • Published

arrayiffy-if-string

Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.

  • v5.0.10
  • 36.36
  • Published

object-assign-deep

Allows deep cloning of plain objects that contain primitives, nested plain objects, or nested plain arrays.

  • v0.4.0
  • 36.36
  • Published

101

common javascript utils that can be required selectively that assume es5+

  • v1.6.3
  • 36.35
  • Published

cwise

Component-wise operations on ndarrays

  • v1.0.10
  • 36.33
  • Published

utils-copy

Copy or deep clone a value to an arbitrary depth.

  • v1.1.1
  • 36.33
  • Published

is-array-type

Check if a value is an array or a typed array

  • v1.0.0
  • 36.30
  • Published

keypather

Get or set a deep value using a keypath string. Supports bracket and dot notation

  • v3.1.0
  • 36.29
  • Published

utils

Fast, generic JavaScript/node.js utility functions.

  • v0.3.1
  • 36.27
  • Published

@stdlib/utils-index-of

Return the first index at which a given element can be found.

  • v0.2.2
  • 36.26
  • Published

async-some

short-circuited, asynchronous version of Array.protototype.some

  • v1.0.2
  • 36.23
  • Published

typed-array-ranges

Get the Smallest and Largest Possible Numbers for a Typed Array

  • v0.0.0
  • 36.23
  • Published

compute-dims

Computes array dimensions.

  • v1.1.0
  • 36.15
  • Published

data-joint

Perform data joins with any type of JS objects

  • v1.3.3
  • 36.15
  • Published

mergesort

Sort an array using the merge-sort algorithm.

  • v0.0.1
  • 36.14
  • Published

gl-buffer

WebGL buffer wrapper

  • v2.1.2
  • 36.06
  • Published

ndarray-sort

Sorts ndarrays in place

  • v1.0.1
  • 35.99
  • Published

render-fragment

A convenient way to return a JSX fragment without the wrapping `div` element and not worry about the version of React.

  • v0.1.1
  • 35.98
  • Published

array-next

Advance to the next item in the array looping when hitting the end.

  • v0.0.1
  • 35.93
  • Published

find-insert-index

Find the index to insert an element in array keeping the sort order.

  • v0.0.1
  • 35.92
  • Published

gl-vao

Vertex array object wrapper/shim for WebGL

  • v1.3.0
  • 35.92
  • Published

index-of

Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.

  • v0.2.0
  • 35.80
  • Published

types-json

Type checking for JSON values

  • v4.0.1
  • 35.79
  • Published

pokemon

Get Pokémon names

  • v3.3.0
  • 35.76
  • Published

just-group-by

return a grouped object from array

  • v2.2.0
  • 35.69
  • Published

object-boolean-combinations

Consumes a defaults object with booleans, generates all possible variations of it

  • v6.1.9
  • 35.68
  • Published

morphism

Do not repeat anymore your objects transformations.

  • v1.12.3
  • 35.65
  • Published

block-elements

Array of "block level elements" defined by the HTML specification

  • v1.2.0
  • 35.64
  • Published

or

Returns an element from an array when it matches a condition

  • v0.2.0
  • 35.64
  • Published

just-range

Generate a range array for numbers

  • v4.2.0
  • 35.54
  • Published

run-auto

Determine the best order for running async functions, and run them

  • v2.0.4
  • 35.46
  • Published

iterable-to-stream

Converts iterable objects into readable streams.

  • v2.0.0
  • 35.45
  • Published

rr

Component to iterate an array round robin.

  • v0.1.0
  • 35.43
  • Published

cast-array

Ensure a value is an array and wrap it if it is not an array

  • v1.0.1
  • 35.33
  • Published

decircular

Remove circular references from objects

  • v1.0.0
  • 35.28
  • Published

soft-assert

Soft Asserts JSON, Array and other data

  • v0.2.7
  • 35.26
  • Published

@stdlib/utils-copy

Copy or deep clone a value to an arbitrary depth.

  • v0.2.2
  • 35.24
  • Published

array-intersection

Return an array with the unique values present in _all_ given arrays using strict equality for comparisons.

  • v0.1.2
  • 35.23
  • Published

array-every

Returns true if the callback returns truthy for all elements in the given array.

  • v0.1.2
  • 35.15
  • Published

filter-array

Iterates over the elements in an array, returning an array with only the elements for which the callback returns truthy.

  • v0.2.0
  • 35.12
  • Published

utf8-string-bytes

Convert a string to utf8 byte array or vice versa.

    • v1.0.3
    • 35.04
    • Published

    is-array-like

    Checks if the given value is an array or array-like object.

    • v1.1.2
    • 35.02
    • Published

    @iden3/bigarray

    Big Array object that allows to handle arrays with a huge number of elements.

    • v0.0.2
    • 34.99
    • Published

    form-fix-array

    Fixes key names for HTTP form data, to ensure that arrays are handled correctly.

    • v1.0.0
    • 34.96
    • Published

    chai-each

    A [Chai](http://chaijs.com/) plugin that allows for assertions on each item in an array

    • v0.0.1
    • 34.95
    • Published

    compound-subject

    A tiny JavaScript library for converting arrays of strings to compound subjects

    • v0.0.2
    • 34.94
    • Published

    random-item

    Get a random item from an array

    • v4.0.1
    • 34.87
    • Published

    lodash.product

    Calculates the Cartesian product between multiple collections.

    • v18.10.0
    • 34.75
    • Published

    @arrows/array

    Functional tools for JS arrays

    • v1.4.1
    • 34.69
    • Published

    montag

    format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string

    • v1.2.1
    • 34.66
    • Published

    @kyleshockey/object-assign-deep

    Allows deep cloning of plain objects that contain primitives, nested plain objects, or nested plain arrays.

    • v0.4.2
    • 34.65
    • Published

    intersperse

    Add an object to an array between each element

    • v1.0.0
    • 34.61
    • Published

    array-indexofobject

    Like Array#indexOf but for objects used like hashes

    • v0.0.1
    • 34.60
    • Published

    addr-to-ip-port

    Convert an 'address:port' string to an array [address:string, port:number]

    • v2.0.0
    • 34.58
    • Published

    save-file

    Save file dialog in browser, write file to disk in node

    • v2.3.1
    • 34.54
    • Published

    2

    The Type Conversion Library. Numbers, Strings, Arrays, Maps, Objects, and Iterators.

    • v3.0.0
    • 34.52
    • Published

    defaulty

    Copies missing properties to the target object.

    • v2.1.0
    • 34.47
    • Published

    stream-chunks

    Get all chunks of a stream

    • v1.0.0
    • 34.44
    • Published

    array-to-tree

    Convert a plain array of nodes (with pointers to parent nodes) to a tree

    • v3.3.2
    • 34.42
    • Published

    pick-item

    Given an array, pick a random element and return it.

    • v1.0.4
    • 34.38
    • Published

    mergician

    Uniquely flexible and light-weight utility for cloning and deep (recursive) merging of JavaScript objects. Supports descriptor values, accessor functions, and custom prototypes. Provides advanced options for customizing the clone/merge process.

    • v2.0.2
    • 34.34
    • Published

    string-array

    Parse string into array of string elements

    • v1.0.1
    • 34.32
    • Published

    each-series-async

    Asynchronously calls a function on each element in an array in series.

    • v1.0.1
    • 34.22
    • Published

    nested-object-diff

    A lightweight javascript diff library for comparing two javascript object nested with supporting matching by value of the object's choosen key name in array.

    • v1.1.0
    • 33.93
    • Published

    decode-gif

    Decode the frames of a gif.

    • v1.0.1
    • 33.82
    • Published

    sort-deep-object-arrays

    Sort objects and arrays of objects nested deeply within other objects or arrays

    • v1.1.2
    • 33.70
    • Published

    just-zip-it

    returns an array of grouped elements, taking n-th element from every given array

    • v3.2.0
    • 33.69
    • Published

    get-comments

    Extract javascript comments on per character basis. Comment object compatible with `acorn-extract-comments` and Esprima format.

    • v1.0.1
    • 33.60
    • Published

    array.prototype.some

    An ES5 spec-compliant `Array.prototype.some` shim/polyfill/replacement that works as far down as ES3.

    • v1.1.6
    • 33.59
    • Published

    @stdlib/array-base-setter

    Return an accessor function for setting an element in an indexed array-like object.

    • v0.2.2
    • 33.54
    • Published

    array-to-table

    Generate markdown table from array of objects

    • v1.0.1
    • 33.51
    • Published

    just-sort-by

    Produces a new array, sorted in ascending order

    • v3.2.0
    • 33.50
    • Published

    just-split

    Splits array into groups of n items each

    • v3.2.0
    • 33.49
    • Published

    deeply

    A toolkit for deep structure manipulations, provides deep merge/clone functionality out of the box, and exposes hooks and custom adapters for more control and greater flexibility.

    • v3.1.0
    • 33.45
    • Published

    diff-arrays-of-objects

    Compare two arrays of objects, finding added, removed, updated and identical objects. Details the differences between updated objects.

    • v1.1.9
    • 33.42
    • Published

    @stdlib/array-base-accessor-getter

    Return an accessor function for retrieving an element from an array-like object supporting the get/set protocol.

    • v0.2.2
    • 33.42
    • Published

    @stdlib/array-base-getter

    Return an accessor function for retrieving an element from an indexed array-like object.

    • v0.2.2
    • 33.37
    • Published

    just-order-by

    Produces a new array, sorted in given order

    • v1.0.0
    • 33.29
    • Published

    each

    Chained and parallel async iterator in one elegant function.

    • v2.7.2
    • 33.27
    • Published

    dedupe

    easy deduplication of array values

    • v4.0.3
    • 33.25
    • Published

    array-merge-by-key

    Effectively merge arrays of objects into a single array by merging objects with the same key (property).

    • v1.0.1
    • 33.20
    • Published

    cycled

    Cycle through the items of an array

    • v2.0.0
    • 33.04
    • Published

    reduce-first

    Return early from reduce

    • v2.0.0
    • 33.01
    • Published

    extract-first-json

    Extract the first JSON object or array from a string

    • v2.0.2
    • 32.93
    • Published

    @firanorg/mollitia-molestias-accusamus

    [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

    • v10.13.142
    • 32.85
    • Published

    is-present

    Check whether a value is nonblank.

    • v1.0.0
    • 32.78
    • Published

    php-array-reader

    Reads PHP arrays from a string into a JavaScript object

    • v2.1.2
    • 32.68
    • Published

    @d3fc/d3fc-extent

    Extends the d3 extent functionality to allow multiple accessors, padding and date support

    • v4.0.2
    • 32.61
    • Published

    cartesian

    Computes the cartesian product of arrays provided by an array or an object

    • v1.0.1
    • 32.58
    • Published

    arrayify-stream

    Converts a Node readable stream into an array

    • v3.0.0
    • 32.56
    • Published

    lodash-clean

    Remove object keys that have empty values.

    • v2.2.3
    • 32.50
    • Published

    @thi.ng/transducers

    Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations

    • v9.6.8
    • 32.43
    • Published

    @esm2cjs/yocto-queue

    Tiny queue data structure. This is a fork of sindresorhus/yocto-queue, but with CommonJS support.

    • v1.0.0
    • 32.35
    • Published

    anysort

    Sorting and matching utility using configurable string, glob, regular expression, and/or function matchers

    • v2.0.0
    • 32.33
    • Published

    stdopt

    Wrap and validate optional values

    • v13.0.0
    • 32.24
    • Published

    array-intersect

    [![array-intersect on Travis](https://img.shields.io/travis/callmecavs/array-intersect.svg?style=flat-square)](https://travis-ci.org/callmecavs/array-intersect) [![array-intersect on NPM](https://img.shields.io/npm/v/array-intersect.svg?style=flat-square)

    • v0.0.1
    • 32.24
    • Published

    indexable-array

    Extended native JavaScript Array which provides indexed lookup similar to native Map.

    • v0.7.4
    • 32.24
    • Published

    flat-map-polyfill

    An implementation of `Array.prototype.flatMap` as specified by Brian Terlson in https://github.com/bterlson/proposal-flatMap

    • v0.3.8
    • 32.22
    • Published

    english-list

    make "X, Y, and Z"-style lists from arrays

    • v1.0.0
    • 32.20
    • Published

    x3-linkedlist

    A doubly linked list implementation

    • v1.2.0
    • 32.19
    • Published

    @lamansky/flatten

    A one-liner function that flattens arrays.

    • v1.0.0
    • 32.11
    • Published

    has-duplicates

    Returns true if an array has duplicate elements or a string has duplicate characters.

    • v1.0.0
    • 32.01
    • Published

    chai-json

    A chai plugin to validate json files

    • v1.0.0
    • 32.01
    • Published

    array-pad

    Module for returning arrays with a specific length by padding values.

    • v0.0.1
    • 31.99
    • Published

    @ronomon/queue

    Process thousands of asynchronous or synchronous jobs, concurrently or sequentially, safely and efficiently, without creating thousands of closures.

    • v3.0.1
    • 31.95
    • Published

    just-last

    return the last member of an array

    • v3.2.0
    • 31.94
    • Published

    longest-first

    Sorts items in descending order of length.

    • v1.0.0
    • 31.83
    • Published

    case-insensitive

    Wraps around an array or string and transforms certain methods into case-insensitive versions.

    • v1.0.0
    • 31.81
    • Published

    rtrim-array

    Removes specified values from the end of an array.

    • v1.1.0
    • 31.78
    • Published

    async-arrays

    Async control for arrays

    • v2.0.0
    • 31.78
    • Published

    argsplit

    Split a string of arguments into an array

    • v1.0.5
    • 31.77
    • Published

    is-array-of-length

    Returns true if a value is an array containing the specified number of elements.

    • v1.1.0
    • 31.77
    • Published

    array-events

    Events and more for arrays

    • v2.0.1
    • 31.73
    • Published

    @opentf/std

    An Extensive JavaScript Standard Library.

    • v0.13.0
    • 31.71
    • Published

    @lamansky/every

    A better Array.prototype.every(). Supports iterables, whitelist testing, and more.

    • v1.0.0
    • 31.71
    • Published

    just-union

    returns the union of two arrays

    • v3.2.0
    • 31.71
    • Published

    util-nonempty

    Is the input (plain object, array, string or whatever) not empty?

    • v5.0.19
    • 31.67
    • Published

    to-length

    Converts value to an integer suitable for use as the length of an array-like object.

    • v1.0.1
    • 31.61
    • Published