JSPM

Found 9803 results for array utility

diff-arrays

Utility method for finding the difference between arrays, showing which array has which differences

  • v1.0.0
  • 50.86
  • Published

iterate-value

Iterate any iterable JS value. Works robustly in all environments, all versions.

  • v1.0.2
  • 50.81
  • Published

array-most-common

Small utility function to get the most common item in an array

  • v1.0.0
  • 50.79
  • Published

array.prototype.map

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

  • v1.0.8
  • 50.08
  • Published

array.prototype.filter

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

  • v1.0.4
  • 49.94
  • Published

overlaps

Simple utility that checks whether or not two arrays overlap. It is equivalent to intersection(arr1, arr2).length > 0, but is more performant.

  • v1.0.0
  • 49.68
  • Published

run-series

Run an array of functions in series

  • v1.1.9
  • 49.62
  • Published

reduce-flatten

Isomorphic map-reduce function to flatten an array into the supplied array

  • v3.0.1
  • 49.22
  • Published

array.prototype.toreversed

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

  • v1.1.2
  • 49.08
  • Published

@igorskyflyer/clone

🧬 A lightweight JavaScript utility allowing deep copy-by-value of nested objects, arrays and arrays of objects. 🪁

  • v1.0.1
  • 49.07
  • Published

response-iterator

Creates an async iterator for a variety of inputs in the browser and node. Supports fetch, node-fetch, and cross-fetch

  • v1.0.1
  • 48.95
  • Published

p-waterfall

Run promise-returning & async functions in series, each passing its result to the next

  • v3.0.0
  • 48.94
  • Published

run-parallel-limit

Run an array of functions in parallel, but limit the number of tasks executing at the same time

  • v1.1.0
  • 48.93
  • Published

array-filter

Array#filter for older browsers.

  • v1.0.0
  • 48.87
  • Published

array-from

A ponyfill for the ES 2015 (ES6) `Array.from()`.

  • v2.1.1
  • 48.68
  • Published

arr-filter

Faster alternative to javascript's native filter method.

  • v1.1.2
  • 48.62
  • Published

compute-gcd

Computes the greatest common divisor (gcd).

  • v1.2.1
  • 48.61
  • Published

ends-with

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

  • v1.0.1
  • 48.57
  • Published

compute-lcm

Computes the least common multiple (lcm).

  • v1.1.2
  • 48.41
  • Published

async-foreach

An optionally-asynchronous forEach with an interesting interface.

  • v0.1.3
  • 48.39
  • Published

array-sort

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.

  • v1.0.0
  • 48.32
  • Published

shallow-copy

make a shallow copy of an object or array

  • v0.0.1
  • 48.31
  • 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
  • 48.25
  • Published

arr-map

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

  • v2.0.2
  • 48.21
  • Published

array-iterate

`Array#forEach()` but it’s possible to define where to move to next

  • v2.0.1
  • 48.05
  • Published

@arr/unique

A tiny (111B) & fast utility to retrieve all unique values from an Array

  • v1.0.1
  • 47.96
  • Published

@hapi/vise

Treat multiple buffers as one

  • v5.0.1
  • 47.95
  • Published

sort-desc

Sort array elements in descending order.

  • v0.2.0
  • 47.76
  • Published

sort-asc

Sort array elements in ascending order.

  • v0.2.0
  • 47.72
  • Published

sort-object

Sort the keys in an object.

  • v3.0.3
  • 47.71
  • Published

finmath

The FinTech utility collections of simple, cumulative, and exponential moving averages.

  • v2.0.1
  • 47.67
  • Published

@ffras4vnpm/inventore-aliquam-quisquam

@ffras4vnpm/inventore-aliquam-quisquam is a Node.js module to mask various kinds of data. With the help of @ffras4vnpm/inventore-aliquam-quisquam, you can mask email, phone number, card number, JSON fields, password, etc... <br/>Also, it provides utility

  • v1.0.0
  • 47.57
  • Published

find-index

finds an item in an array matching a predicate function, and returns its index

  • v1.1.1
  • 47.41
  • Published

sort-any

Sorts any JavaScript array in a predictable way (deep equal arrays are always sorted in the same order)

  • v4.0.6
  • 47.27
  • Published

order-diff

Javascript utility for calculating deep difference with order, capturing changes, and applying changes across objects; for nodejs and the browser.

  • v1.0.6
  • 47.25
  • Published

array-find

ES6 Array.find ponyfill. Return the first array element which satisfies a testing function.

  • v1.0.0
  • 47.15
  • Published

levenary

[![npm-version](https://img.shields.io/npm/v/levenary.svg)](https://www.npmjs.com/package/levenary) [![github-actions](https://github.com/tanhauhau/levenary/workflows/CI/badge.svg)](https://github.com/tanhauhau/levenary/actions)

  • v1.1.1
  • 47.03
  • Published

as-array

Make any value an array. No dependencies.

  • v2.0.0
  • 46.99
  • Published

array-map

`[].map(f)` for older browsers

  • v0.0.1
  • 46.94
  • Published

ndarray

Multidimensional Arrays

  • v1.0.19
  • 46.78
  • Published

sliced

A faster Node.js alternative to Array.prototype.slice.call(arguments)

  • v1.0.1
  • 46.77
  • Published

any

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

  • v1.0.0
  • 46.73
  • Published

on-change

Watch an object or array for changes

  • v5.0.1
  • 46.65
  • Published

utils-indexof

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

  • v1.0.0
  • 46.38
  • Published

iota-array

Generates an array of consecutive integers starting at 0

  • v1.0.0
  • 46.25
  • Published

p-iteration

Make array iteration easy when using async/await and Promises

  • v1.1.8
  • 46.18
  • Published

structkit

JS/TS utility tool that offers your wide varity of function to simplify your problem with the data

  • v1.4.873
  • 46.08
  • Published

array-reduce

`[].reduce()` for old browsers

  • v0.0.0
  • 45.99
  • Published

intersect-arrays-to-stream

A utility that takes 1 or more sorted arrays and emits a node stream event whenever an intersection is found

    • v0.0.3
    • 45.97
    • Published

    is-empty

    Check whether a value is "empty".

    • v1.2.0
    • 45.89
    • Published

    @zippytech/sorty

    Utility for sorting object arrays on multiple properties

    • v2.0.0
    • 45.71
    • Published

    @stdlib/utils-index-of

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

    • v0.2.2
    • 45.67
    • Published

    @util.js/arrays

    JavaScript utility methods for arrays

    • v0.41.3
    • 45.45
    • Published

    async-arrays

    Async control for arrays

    • v2.0.0
    • 45.38
    • Published

    first-match

    Find the first element in an array that passes a callback test. Equivalent to underscore.find()

    • v0.0.1
    • 45.38
    • Published

    @osaedasia/std

    A collection of standard utility classes and functions designed to enhance your TypeScript development experience.

    • v0.3.0
    • 45.31
    • Published

    sort-on

    Sort an array on an object property

    • v6.1.1
    • 45.26
    • Published

    @metamask/superstruct

    A simple and composable way to validate data in JavaScript (and TypeScript).

    • v3.2.1
    • 45.24
    • Published

    split-array-stream

    Safely push each item of an array to a stream

    • v2.0.0
    • 45.19
    • Published

    @arr/every

    A tiny, faster alternative to native Array.prototype.every

    • v1.0.1
    • 45.06
    • Published

    arutils

    Prototype utility of Array!

    • v1.1.0
    • 45.04
    • Published

    @jood/common

    javascript array, string, number, point, color, cache, date utility/helper

    • v0.4.3
    • 45.02
    • Published

    dtype

    Return a data type from a string representing the type

    • v2.0.0
    • 44.89
    • Published

    php-array-reader

    Reads PHP arrays from a string into a JavaScript object

    • v2.1.2
    • 44.72
    • Published

    is-odd

    Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.

    • v3.0.1
    • 44.71
    • Published

    ndarray-pack

    Packs an array-of-arrays into a single ndarray

    • v1.2.1
    • 44.65
    • Published

    @75lb/deep-merge

    Deep-merge the values of one object structure into another

    • v1.1.2
    • 44.61
    • Published

    sum_of_first_10

    Utility function that finds the sum of first 10 array items considering non-numbers as 0, in an array

      • v1.0.1
      • 44.49
      • Published

      dup

      Initialize an array of arrays to a constant

      • v1.0.0
      • 44.46
      • Published

      array-intersection

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

      • v0.1.2
      • 44.35
      • Published

      arr-rotate

      Rotate all items in an array

      • v1.0.0
      • 44.21
      • Published

      @arr/flatten

      A tiny (139B) & fast utility to recursively flatten an array of arrays!

      • v1.0.1
      • 44.21
      • Published

      rr

      Component to iterate an array round robin.

      • v0.1.0
      • 44.14
      • Published

      array-bounds

      Find [nd-]array min/max values

      • v1.0.1
      • 44.12
      • Published

      dot-path-value

      Safely get deep nested properties using dot notation

      • v0.0.11
      • 44.08
      • Published

      array-rearrange

      Rearrange array elements by index array

      • v2.2.2
      • 44.05
      • Published

      array-range

      creates a new array with given range

      • v1.0.1
      • 44.05
      • Published

      intersperse

      Add an object to an array between each element

      • v1.0.0
      • 44.02
      • Published

      array-normalize

      Normalize array (possibly n-dimensional) to zero mean and unit variance

      • v2.0.0
      • 43.88
      • Published

      get-set-props

      List of getter/setter properties for JavaScript types

      • v0.2.0
      • 43.85
      • Published

      section-iterator

      Simple iterator for flat and multi section lists

      • v2.0.0
      • 43.84
      • Published

      array-move

      Move an array item to a different position

      • v4.0.0
      • 43.77
      • Published

      deep-copy

      Deep copy objects and arrays

      • v1.4.2
      • 43.72
      • Published

      pqbd

      An array utility library

      • v1.0.8
      • 43.65
      • Published

      bytebuffer

      The swiss army knife for binary data in JavaScript.

      • v5.0.1
      • 43.34
      • Published

      common-sequence

      Returns an array containing the initial elements which both input arrays have in common

      • v3.0.0
      • 43.31
      • Published

      obj-props

      List of properties for JavaScript objects

      • v2.0.0
      • 43.30
      • Published

      js-types

      List of JavaScript types

      • v4.0.0
      • 43.30
      • Published

      jsonexport

      Makes easy to convert JSON to CSV

      • v3.2.0
      • 43.25
      • Published

      humanize-list

      Comma delimit an array for human readability, the Oxford comma is optional.

      • v1.0.1
      • 43.12
      • Published

      to-rotated

      Rotate an array by a given number of steps

      • v1.0.0
      • 43.11
      • Published

      @thi.ng/arrays

      Array / Arraylike utilities

      • v2.13.11
      • 43.01
      • Published

      @salespark/toolkit

      Collection of utility functions and helpers, designed to speed up development across SalesPark projects. Includes common helpers, reusable patterns, and extended functions.

      • v2.0.1
      • 42.99
      • Published

      purekit

      The Simple and Efficient Utility Library

      • v1.0.5
      • 42.94
      • Published

      compute-dot

      Computes the dot product between two numeric arrays.

      • v1.1.0
      • 42.89
      • Published

      get-closest

      Compare your item to items in an array and get the closest one.

      • v0.0.4
      • 42.84
      • Published

      make-array

      Creates a real Array from almost anything.

      • v1.0.5
      • 42.84
      • Published

      sort-array

      Isomorphic, load-anywhere function to sort an array by scalar, deep or computed values in any standard or custom order

      • v5.1.1
      • 42.71
      • Published

      @thi.ng/equiv

      Extensible deep value equivalence checking for any data types

      • v2.1.92
      • 42.60
      • Published

      @thi.ng/zipper

      Functional tree editing, manipulation & navigation

      • v2.1.149
      • 42.54
      • Published

      expand-braces

      Wrapper for [braces] to enable brace expansion for arrays of patterns.

      • v0.1.2
      • 42.44
      • Published

      is-even

      Return true if the given number is even.

      • v1.0.0
      • 42.44
      • Published

      fast-shuffle

      A fast implementation of a fisher-yates shuffle that does not mutate the source array.

      • v6.1.1
      • 42.43
      • Published

      array.prototype.every

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

      • v1.1.7
      • 42.24
      • Published

      compute-l2norm

      Computes the L2 norm (Euclidean norm) of an array of values.

      • v1.1.0
      • 42.21
      • Published

      deep-for-each

      Recursively iterates over arrays and objects

      • v3.0.0
      • 42.20
      • Published

      sortobject

      Returns a copy of an object, sorted deeply by its keys, without mangling any arrays inside of it

      • v5.6.0
      • 42.17
      • Published

      @flunsi/utility

      Web utility functions for my projects.

      • v1.0.0
      • 42.10
      • Published

      is-circular

      high-performance, zero-dependency circular reference check for objects (or arrays)

      • v1.0.2
      • 42.04
      • Published

      rxjs-mergemap-array

      An RxJS map operator that takes an observable of arrays as input and emits arrays where each element represents emissions from the projected observable.

      • v0.1.0
      • 41.98
      • Published

      eachr

      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.

      • v7.4.0
      • 41.97
      • Published

      router-ips

      List of common default router IP addresses

      • v2.0.0
      • 41.88
      • Published

      falsey

      Returns true if the given is falsey (according to JavaScript) or matches a 'falsey' keyword.

      • v1.0.0
      • 41.84
      • Published

      ip-cidr

      Module for working with CIDR (v4, v6)

      • v4.0.2
      • 41.67
      • Published

      matched

      Adds array support to node-glob, sync and async. Also supports tilde expansion (user home) and resolving to global npm modules.

      • v5.0.1
      • 41.55
      • Published

      deep-override

      recursive object extending & overriding

      • v1.0.2
      • 41.49
      • Published

      random-array-item

      Simple utility to fetch a random item from an array

      • v0.0.2
      • 41.41
      • Published

      object-pairs

      Object -> [[key0, value0], [key1, value1]...]

      • v0.1.0
      • 41.33
      • 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
      • 41.33
      • Published

      ranges-sort

      Sort string index ranges

      • v6.0.14
      • 41.32
      • Published

      listify

      Turn an array into a list of comma-separated values, appropriate for use in an English sentence.

      • v1.0.3
      • 41.27
      • Published

      lazy-property

      Lazily initialized properties for objects

      • v1.0.0
      • 41.21
      • Published

      reduce-unique

      Reduce an array to unique values, optionally into a separate array.

      • v2.0.1
      • 41.18
      • Published

      run-waterfall

      Run an array of functions in series, each passing its results to the next function (waterfall)

      • v1.1.7
      • 41.13
      • Published

      stream-array

      Pipe an Array through Node.js streams

      • v1.1.2
      • 41.01
      • Published

      dotenv-parse-variables

      Parse dotenv files for Boolean, Array, and Number variable types, built for CrocodileJS

      • v2.0.0
      • 40.96
      • Published

      tiny-each-async

      Asynchronous iterator function for parallel processing.

      • v2.0.3
      • 40.94
      • Published

      is-array

      Check if the given value is an Array

      • v1.0.1
      • 40.89
      • Published

      array-to-sentence

      Join all elements of an array and create a human-readable string

      • v2.0.0
      • 40.83
      • Published

      p-fifo

      Promised First-In-First-Out buffer. Await on push to be told when a value is consumed and await on shift for a value to consume when the buffer is empty.

      • v1.0.0
      • 40.82
      • Published

      dhruvtodo

      A comprehensive todo management library with task and category utilities, plus array sorting functions

      • v2.0.56
      • 40.78
      • Published

      shuffle-array

      Randomize the order of the elements in a given array.

      • v1.0.1
      • 40.65
      • Published

      nested-property

      Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'

      • v4.0.0
      • 40.58
      • Published

      @ronomon/queue

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

      • v3.0.1
      • 40.42
      • Published

      array-pad

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

      • v0.0.1
      • 40.36
      • Published

      async-array-reduce

      Async array reduce. Asynchronously applies a function against an accumulator and each element in an array (from left to right, in series) to reduce it to a single value.

      • v1.0.0
      • 40.34
      • Published

      filled-array

      Returns an array filled with the specified input

      • v2.2.0
      • 40.24
      • Published

      @opentf/std

      An Extensive JavaScript Standard Library.

      • v0.13.0
      • 40.23
      • Published

      array.prototype.foreach

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

      • v1.0.7
      • 40.08
      • Published

      make-unique

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

      • v1.0.4
      • 40.07
      • Published

      parallel-each

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

      • v1.1.7
      • 40.06
      • Published

      methmeth

      Execute a method out from an object.

      • v1.1.0
      • 39.94
      • Published

      array-to-error

      Create an error from an array of error messages

      • v1.1.1
      • 39.89
      • Published

      nested-equal

      A tiny (~200B) and fast nested/deep equality utility

      • v1.0.1
      • 39.88
      • Published

      typescript-collections

      A complete, fully tested data structure library written in TypeScript.

      • v1.3.3
      • 39.80
      • Published

      new-array

      create a new array filled with a value, or zero

      • v1.0.0
      • 39.66
      • Published

      hasharray

      A data structure that combines a hash and an array for fast dictionary lookup and traversal by complex keys.

      • v1.1.2
      • 39.60
      • Published

      remove-array-items

      remove items from a javascript array without generating memory garbage

      • v3.0.0
      • 39.56
      • Published

      uc-first-array

      Uppercase first character of each element in arrays of strings.

      • v1.1.11
      • 39.48
      • Published

      intersect

      Find the intersection of two arrays

      • v1.0.1
      • 39.42
      • Published

      dotsplit.js

      Transform dot-delimited strings to array of strings for Node.js and the browser.

      • v1.1.0
      • 39.41
      • Published

      frostcore

      FrostCore is a free, open-source utility library for JavaScript.

      • v1.0.13
      • 39.37
      • Published

      @dramaorg/delectus-culpa-reprehenderit

      [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im

      • v3.5.94
      • 39.33
      • Published

      hifo

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

      • v1.0.0
      • 39.32
      • Published

      dank-each

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

      • v1.0.0
      • 39.30
      • Published

      dank-map

      A map function that can map over almost anything.

      • v0.1.0
      • 39.29
      • Published

      group-array

      Group array of objects into lists.

      • v1.0.0
      • 39.19
      • Published

      circularr

      Circular fixed size array

      • v0.3.0
      • 39.08
      • Published

      data-bind-mapper

      Bind data arrays to any type of JS objects

      • v1.0.3
      • 39.05
      • Published

      sparse-array

      Sparse array implementation in JS with no dependencies

      • v1.3.2
      • 39.04
      • Published

      list-to-array

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

      • v1.1.0
      • 38.69
      • Published

      just-compare

      compare two collections

      • v2.3.0
      • 38.55
      • Published

      @bbob/parser

      A BBCode to AST Parser part of @bbob

      • v4.2.0
      • 38.55
      • Published

      array-shuffle

      Randomize the order of items in an array

      • v3.0.0
      • 38.49
      • Published

      clz-buffer

      Count leading zeros in a Buffer (clz)

      • v1.0.0
      • 38.40
      • 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.27
      • Published

      obop

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

      • v1.0.0
      • 38.10
      • Published

      an-array

      Check if an object is an array or a typed array

      • v1.0.0
      • 37.98
      • 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
      • 37.95
      • Published

      basic-utility-belt

      Basic Utility Belt is a versatile collection of essential utility functions designed to simplify a wide range of common programming tasks. Whether you need to manipulate dates, perform arithmetic operations, or process strings, this toolkit has you covere

      • v1.0.19
      • 37.89
      • 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.76
      • Published

      combinations

      find all combinations from array

      • v1.0.0
      • 37.71
      • Published

      arr-swap

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

      • v1.0.1
      • 37.68
      • Published

      each-parallel-async

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

      • v1.0.0
      • 37.55
      • Published

      fast-array-diff

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

      • v1.1.0
      • 37.54
      • Published

      p-series

      Run promise-returning & async functions in series

      • v3.0.0
      • 37.50
      • Published

      to-array-buffer

      Convert any binary data to ArrayBuffer

      • v3.2.0
      • 37.43
      • Published

      just-unique

      dedupes an array

      • v4.2.0
      • 37.43
      • 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.43
      • Published

      states-us

      List of US states and territories.

      • v1.1.1
      • 37.30
      • Published

      array-keyed-map

      a map from arrays of values to values

      • v2.1.3
      • 37.29
      • Published

      deep-map

      Transforms nested values of complex objects

      • v2.0.0
      • 37.23
      • Published

      utf8-length

      return the number of bytes in a unicode string

      • v0.0.1
      • 37.11
      • 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.08
      • Published

      get-depth

      Get the Depth of a Multi-Dimensional Array of Values

      • v0.0.3
      • 37.00
      • Published

      array-index

      Invoke getter/setter functions on array-like objects

      • v1.0.0
      • 36.98
      • Published

      calc-stats

      Memory-Aware Statistical Calculations

      • v2.6.0
      • 36.96
      • Published

      arrayify-compact

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

      • v0.2.0
      • 36.88
      • Published