JSPM

Found 9803 results for array copy

array-range

creates a new array with given range

  • v1.0.1
  • 44.09
  • Published

array-rearrange

Rearrange array elements by index array

  • v2.2.2
  • 43.96
  • Published

array-normalize

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

  • v2.0.0
  • 43.91
  • Published

array-bounds

Find [nd-]array min/max values

  • v1.0.1
  • 43.89
  • Published

@kyleshockey/object-assign-deep

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

  • v0.4.2
  • 43.74
  • Published

section-iterator

Simple iterator for flat and multi section lists

  • v2.0.0
  • 43.72
  • Published

array-move

Move an array item to a different position

  • v4.0.0
  • 43.69
  • Published

typechecker

Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)

  • v9.3.0
  • 43.69
  • Published

get-set-props

List of getter/setter properties for JavaScript types

  • v0.2.0
  • 43.55
  • Published

common-sequence

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

  • v3.0.0
  • 43.46
  • Published

defaulty

Copies missing properties to the target object.

  • v2.1.0
  • 43.42
  • Published

obj-props

List of properties for JavaScript objects

  • v2.0.0
  • 43.36
  • Published

js-types

List of JavaScript types

  • v4.0.0
  • 43.35
  • Published

to-rotated

Rotate an array by a given number of steps

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

jsonexport

Makes easy to convert JSON to CSV

  • v3.2.0
  • 43.27
  • Published

seededshuffle

Shuffle and unshuffle an array by seed/key.

  • v0.2.0
  • 43.16
  • Published

@thi.ng/arrays

Array / Arraylike utilities

  • v2.13.10
  • 43.00
  • Published

humanize-list

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

  • v1.0.1
  • 42.99
  • Published

get-closest

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

  • v0.0.4
  • 42.98
  • Published

@budibase/handlebars-helpers

More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.

  • v0.14.2
  • 42.98
  • 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.87
  • Published

compute-dot

Computes the dot product between two numeric arrays.

  • v1.1.0
  • 42.72
  • Published

@thi.ng/equiv

Extensible deep value equivalence checking for any data types

  • v2.1.91
  • 42.70
  • Published

make-array

Creates a real Array from almost anything.

  • v1.0.5
  • 42.68
  • Published

@thi.ng/zipper

Functional tree editing, manipulation & navigation

  • v2.1.148
  • 42.66
  • Published

combine-lists

Merge two lists, trying to preserve the order of both

  • v1.0.1
  • 42.50
  • Published

is-even

Return true if the given number is even.

  • v1.0.0
  • 42.38
  • Published

fast-shuffle

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

  • v6.1.1
  • 42.35
  • 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.27
  • Published

array-hyper-unique

Get unique values of an array. Really, like deeply unique.

  • v2.1.6
  • 42.20
  • Published

expand-braces

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

  • v0.1.2
  • 42.18
  • Published

deep-for-each

Recursively iterates over arrays and objects

  • v3.0.0
  • 42.13
  • 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
  • 42.03
  • 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
  • 42.01
  • Published

router-ips

List of common default router IP addresses

  • v2.0.0
  • 42.00
  • Published

falsey

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

  • v1.0.0
  • 41.97
  • Published

is-circular

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

  • v1.0.2
  • 41.97
  • Published

compute-l2norm

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

  • v1.1.0
  • 41.85
  • Published

ip-cidr

Module for working with CIDR (v4, v6)

  • v4.0.2
  • 41.62
  • Published

flat-util

Flatten a nested array.

  • v1.1.11
  • 41.59
  • Published

index-array-by

A utility function to index arrays by any criteria

  • v1.4.2
  • 41.56
  • Published

@mobily/ts-belt

🔧 Fast, modern, and practical utility library for FP in TypeScript.

  • v3.13.1
  • 41.55
  • Published

rtrim-array

Removes specified values from the end of an array.

  • v1.1.0
  • 41.49
  • Published

deep-override

recursive object extending & overriding

  • v1.0.2
  • 41.44
  • 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.39
  • Published

copy-kopya

Create an immutable clone or copy of data. This could be an array, object, map, set or function.

  • v1.0.0
  • 41.33
  • 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.32
  • Published

handlebars-helpers

More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.

  • v0.10.0
  • 41.24
  • Published

reduce-unique

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

  • v2.0.1
  • 41.20
  • Published

object-pairs

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

  • v0.1.0
  • 41.15
  • Published

lazy-property

Lazily initialized properties for objects

  • v1.0.0
  • 41.11
  • Published

listify

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

  • v1.0.3
  • 41.05
  • Published

ranges-sort

Sort string index ranges

  • v6.0.14
  • 41.03
  • Published

tiny-each-async

Asynchronous iterator function for parallel processing.

  • v2.0.3
  • 41.00
  • Published

dotenv-parse-variables

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

  • v2.0.0
  • 40.97
  • Published

run-waterfall

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

  • v1.1.7
  • 40.97
  • Published

is-array

Check if the given value is an Array

  • v1.0.1
  • 40.94
  • Published

array-to-sentence

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

  • v2.0.0
  • 40.89
  • 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.84
  • Published

stream-array

Pipe an Array through Node.js streams

  • v1.1.2
  • 40.68
  • 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.27
  • Published

shuffle-array

Randomize the order of the elements in a given array.

  • v1.0.1
  • 40.24
  • Published

methmeth

Execute a method out from an object.

  • v1.1.0
  • 40.16
  • 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.03
  • Published

filled-array

Returns an array filled with the specified input

  • v2.2.0
  • 39.99
  • Published

typescript-collections

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

  • v1.3.3
  • 39.95
  • Published

new-array

create a new array filled with a value, or zero

  • v1.0.0
  • 39.84
  • Published

array.prototype.foreach

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

  • v1.0.7
  • 39.72
  • Published

array.prototype.tospliced

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

  • v1.1.5
  • 39.71
  • Published

array-to-error

Create an error from an array of error messages

  • v1.1.1
  • 39.62
  • Published

remove-array-items

remove items from a javascript array without generating memory garbage

  • v3.0.0
  • 39.40
  • Published

intersect

Find the intersection of two arrays

  • v1.0.1
  • 39.39
  • 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.37
  • Published

dotsplit.js

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

  • v1.1.0
  • 39.36
  • 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.35
  • Published

dank-map

A map function that can map over almost anything.

  • v0.1.0
  • 39.33
  • Published

hifo

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

  • v1.0.0
  • 39.30
  • Published

sort-object-keys2

Sort an object's keys, including an optional key list

  • v3.0.7
  • 39.28
  • 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

uc-first-array

Uppercase first character of each element in arrays of strings.

  • v1.1.11
  • 39.27
  • Published

sort-by

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

  • v1.2.0
  • 39.24
  • Published

dank-each

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

  • v1.0.0
  • 39.23
  • Published

sparse-array

Sparse array implementation in JS with no dependencies

  • v1.3.2
  • 39.15
  • 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
  • 39.10
  • Published

data-bind-mapper

Bind data arrays to any type of JS objects

  • v1.0.3
  • 39.07
  • Published

circularr

Circular fixed size array

  • v0.3.0
  • 38.99
  • Published

group-array

Group array of objects into lists.

  • v1.0.0
  • 38.92
  • Published

@bbob/parser

A BBCode to AST Parser part of @bbob

  • v4.2.0
  • 38.67
  • Published

array-shuffle

Randomize the order of items in an array

  • v3.0.0
  • 38.59
  • Published

clz-buffer

Count leading zeros in a Buffer (clz)

  • v1.0.0
  • 38.43
  • Published

notation

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

  • v2.0.0
  • 38.36
  • Published

utils-flatten

flatten() utility function

  • v1.0.0
  • 38.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
  • 38.26
  • Published

just-compare

compare two collections

  • v2.3.0
  • 38.23
  • Published

ends-with

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

  • v1.0.1
  • 38.17
  • Published

an-array

Check if an object is an array or a typed array

  • v1.0.0
  • 38.09
  • 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
  • 37.89
  • 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.84
  • 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.79
  • Published

combinations

find all combinations from array

  • v1.0.0
  • 37.77
  • Published

gammautils

Lots of utilities for Node.js

  • v0.0.81
  • 37.76
  • Published

obop

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

  • v1.0.0
  • 37.75
  • Published

each-parallel-async

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

  • v1.0.0
  • 37.61
  • Published

arr-swap

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

  • v1.0.1
  • 37.60
  • Published

fast-array-diff

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

  • v1.1.0
  • 37.46
  • Published

to-array-buffer

Convert any binary data to ArrayBuffer

  • v3.2.0
  • 37.43
  • Published

states-us

List of US states and territories.

  • v1.1.1
  • 37.26
  • Published

p-series

Run promise-returning & async functions in series

  • v3.0.0
  • 37.25
  • Published

just-unique

dedupes an array

  • v4.2.0
  • 37.23
  • Published

array-keyed-map

a map from arrays of values to values

  • v2.1.3
  • 37.21
  • 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.17
  • Published

deep-map

Transforms nested values of complex objects

  • v2.0.0
  • 37.09
  • 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.03
  • Published

any

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

  • v1.0.0
  • 36.97
  • 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

utf8-length

return the number of bytes in a unicode string

  • v0.0.1
  • 36.86
  • Published

feature-detect-es6

Detect which ES6 (ES2015 and above) features are available

  • v1.5.0
  • 36.78
  • Published

array-index

Invoke getter/setter functions on array-like objects

  • v1.0.0
  • 36.76
  • Published

utils-indexof

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

  • v1.0.0
  • 36.74
  • Published

get-depth

Get the Depth of a Multi-Dimensional Array of Values

  • v0.0.3
  • 36.71
  • Published

calc-stats

Memory-Aware Statistical Calculations

  • v2.6.0
  • 36.67
  • Published

arr-pluck

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

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

map-o

Array-map like function for objects.

  • v2.0.11
  • 36.54
  • 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.52
  • Published

cartesian-product

Compute the cartesian product of an array.

  • v2.1.2
  • 36.45
  • Published

is-blank

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

  • v2.1.0
  • 36.44
  • Published

iter-fun

Fun with Iterables

  • v0.2.0
  • 36.43
  • Published

fast-min

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

  • v0.4.0
  • 36.42
  • Published

indexed-filter

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

  • v1.0.3
  • 36.42
  • Published

xdim

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

  • v1.10.1
  • 36.37
  • 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.32
  • Published

arrayiffy-if-string

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

  • v5.0.10
  • 36.29
  • Published

did-you-mean

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

  • v0.0.1
  • 36.29
  • Published

deep-map-keys

Transforms nested keys of complex objects

  • v2.0.1
  • 36.26
  • Published

@zitterorg/magni-eos

[![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

  • v5.8.60
  • 36.24
  • Published

hashmap

HashMap Class for JavaScript

  • v2.4.0
  • 36.14
  • Published

is-array-type

Check if a value is an array or a typed array

  • v1.0.0
  • 36.12
  • Published

101

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

  • v1.6.3
  • 36.12
  • Published

zip-object

Create an object from from arrays of keys and values

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

keypather

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

  • v3.1.0
  • 36.10
  • Published

fast-max

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

  • v0.5.1
  • 36.09
  • Published

shuffle-seed

Shuffle Array based on a Seed

  • v1.1.6
  • 36.08
  • Published

utils

Fast, generic JavaScript/node.js utility functions.

  • v0.3.1
  • 36.07
  • Published

cwise

Component-wise operations on ndarrays

  • v1.0.10
  • 36.07
  • Published

@stdlib/utils-index-of

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

  • v0.2.2
  • 36.07
  • Published

compute-dims

Computes array dimensions.

  • v1.1.0
  • 36.05
  • Published

typed-array-ranges

Get the Smallest and Largest Possible Numbers for a Typed Array

  • v0.0.0
  • 35.91
  • Published

async-some

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

  • v1.0.2
  • 35.90
  • Published

data-joint

Perform data joins with any type of JS objects

  • v1.3.3
  • 35.84
  • Published

mergesort

Sort an array using the merge-sort algorithm.

  • v0.0.1
  • 35.83
  • Published

gl-buffer

WebGL buffer wrapper

  • v2.1.2
  • 35.80
  • Published

types-json

Type checking for JSON values

  • v4.0.1
  • 35.77
  • Published

path-array

Treat your $PATH like a JavaScript Array

  • v1.0.1
  • 35.73
  • Published

pokemon

Get Pokémon names

  • v3.3.0
  • 35.72
  • Published

ndarray-sort

Sorts ndarrays in place

  • v1.0.1
  • 35.68
  • Published

find-insert-index

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

  • v0.0.1
  • 35.62
  • 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.62
  • Published

morphism

Do not repeat anymore your objects transformations.

  • v1.12.3
  • 35.56
  • Published

array-next

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

  • v0.0.1
  • 35.55
  • Published

block-elements

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

  • v1.2.0
  • 35.55
  • Published

just-range

Generate a range array for numbers

  • v4.2.0
  • 35.52
  • Published

just-group-by

return a grouped object from array

  • v2.2.0
  • 35.52
  • Published

gl-vao

Vertex array object wrapper/shim for WebGL

  • v1.3.0
  • 35.50
  • Published

object-boolean-combinations

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

  • v6.1.9
  • 35.48
  • Published

or

Returns an element from an array when it matches a condition

  • v0.2.0
  • 35.47
  • Published

dstructs-cast-arrays

Casts an array to an array of a different data type.

  • v1.0.3
  • 35.41
  • Published

rr

Component to iterate an array round robin.

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

run-auto

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

  • v2.0.4
  • 35.36
  • Published

cast-array

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

  • v1.0.1
  • 35.30
  • Published

soft-assert

Soft Asserts JSON, Array and other data

  • v0.2.7
  • 35.24
  • Published

@ecency/bytebuffer

The swiss army knife for binary data in JavaScript.

  • v6.0.0
  • 35.20
  • Published

array-intersection

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

  • v0.1.2
  • 35.16
  • Published

iterable-to-stream

Converts iterable objects into readable streams.

  • v2.0.0
  • 35.07
  • Published

is-array-like

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

  • v1.1.2
  • 35.04
  • Published

@iden3/bigarray

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

  • v0.0.2
  • 35.01
  • Published

chai-each

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

  • v0.0.1
  • 34.94
  • Published

array-every

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

  • v0.1.2
  • 34.94
  • Published

2

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

  • v3.0.0
  • 34.83
  • Published

compound-subject

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

  • v0.0.2
  • 34.73
  • Published

array-indexofobject

Like Array#indexOf but for objects used like hashes

  • v0.0.1
  • 34.73
  • Published

random-item

Get a random item from an array

  • v4.0.1
  • 34.72
  • Published

lodash.product

Calculates the Cartesian product between multiple collections.

  • v18.10.0
  • 34.72
  • 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.58
  • Published

save-file

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

  • v2.3.1
  • 34.53
  • Published

form-fix-array

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

  • v1.0.0
  • 34.52
  • Published

intersperse

Add an object to an array between each element

  • v1.0.0
  • 34.51
  • Published

array-to-tree

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

  • v3.3.2
  • 34.33
  • Published

stream-chunks

Get all chunks of a stream

  • v1.0.0
  • 34.31
  • Published

string-array

Parse string into array of string elements

  • v1.0.1
  • 34.31
  • Published

@arrows/array

Functional tools for JS arrays

  • v1.4.1
  • 34.28
  • Published

addr-to-ip-port

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

  • v2.0.0
  • 34.28
  • Published

pick-item

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

  • v1.0.4
  • 34.25
  • Published

each-series-async

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

  • v1.0.1
  • 34.19
  • Published