JSPM

Found 9803 results for array copy to

array.prototype.map

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

  • v1.0.8
  • 55.18
  • Published

array.prototype.filter

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

  • v1.0.4
  • 55.07
  • Published

order-map

A order-map collection in the form of key, value, that ensures the index.

  • v0.3.1
  • 54.90
  • Published

array-ify

Turn anything into an array

  • v1.0.0
  • 54.86
  • Published

is-valid-glob

Return true if a value is a valid glob pattern or patterns.

  • v1.0.0
  • 54.71
  • Published

run-series

Run an array of functions in series

  • v1.1.9
  • 54.65
  • Published

typical

Isomorphic, functional type-checking for Javascript

  • v7.3.0
  • 54.65
  • Published

async-each

No-bullshit, ultra-simple, 35-lines-of-code async parallel forEach / map function for JavaScript.

  • v1.0.6
  • 54.40
  • 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
  • 54.18
  • 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
  • 54.10
  • Published

make-array

Creates a real Array from almost anything.

  • v1.0.5
  • 54.05
  • Published

find-index

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

  • v1.1.1
  • 53.83
  • Published

globjoin

Join paths and globs.

  • v0.1.4
  • 53.80
  • Published

@metamask/superstruct

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

  • v3.2.1
  • 53.73
  • Published

@hapi/vise

Treat multiple buffers as one

  • v5.0.1
  • 53.44
  • Published

reduce-flatten

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

  • v3.0.1
  • 53.30
  • Published

array-last

Get the last or last n elements in an array.

  • v1.3.0
  • 52.60
  • Published

longest

Get the longest item in an array.

  • v2.0.1
  • 52.37
  • Published

typechecker

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

  • v9.3.0
  • 52.26
  • Published

arr-filter

Faster alternative to javascript's native filter method.

  • v1.1.2
  • 52.15
  • Published

object-assign-deep

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

  • v0.4.0
  • 52.14
  • Published

javascript-natural-sort

Natural Sort algorithm for Javascript - Version 0.7 - Released under MIT license

  • v0.7.1
  • 52.13
  • Published

utf8-string-bytes

Convert a string to utf8 byte array or vice versa.

    • v1.0.3
    • 52.05
    • Published

    @arr/every

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

    • v1.0.1
    • 51.76
    • Published

    arr-map

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

    • v2.0.2
    • 51.65
    • Published

    to-rotated

    Rotate an array by a given number of steps

    • v1.0.0
    • 51.33
    • Published

    array-equal

    Check if two arrays are equal

    • v2.0.0
    • 51.25
    • Published

    indexof

    Microsoft sucks

      • v0.0.1
      • 51.20
      • Published

      @tsdotnet/array-copy

      A commonly used array copy utility. (arrayCopy and arrayCopyTo)

      • v1.2.4
      • 51.18
      • Published

      array-move

      Move an array item to a different position

      • v4.0.0
      • 51.15
      • Published

      sort-any

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

      • v4.0.6
      • 50.90
      • Published

      addr-to-ip-port

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

      • v2.0.0
      • 50.83
      • Published

      sortobject

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

      • v5.6.0
      • 50.75
      • Published

      arrayify-compact

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

      • v0.2.0
      • 50.70
      • 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
      • 50.50
      • Published

      array-normalize

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

      • v2.0.0
      • 50.43
      • Published

      get-closest

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

      • v0.0.4
      • 50.40
      • Published

      first-match

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

      • v0.0.1
      • 50.24
      • Published

      sliced

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

      • v1.0.1
      • 50.18
      • Published

      @kyleshockey/object-assign-deep

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

      • v0.4.2
      • 49.91
      • Published

      array-findindex-polyfill

      Simple ES6 Array.prototype.findIndex polyfill for older environments.

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

      combine-lists

      Merge two lists, trying to preserve the order of both

      • v1.0.1
      • 49.29
      • Published

      falsey

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

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

      array-filter

      Array#filter for older browsers.

      • v1.0.0
      • 48.97
      • Published

      compute-gcd

      Computes the greatest common divisor (gcd).

      • v1.2.1
      • 48.62
      • Published

      split-array-stream

      Safely push each item of an array to a stream

      • v2.0.0
      • 48.61
      • Published

      array-initial

      Get all but the last element or last n elements of an array.

      • v1.1.0
      • 48.58
      • Published

      @75lb/deep-merge

      Deep-merge the values of one object structure into another

      • v1.1.2
      • 48.53
      • Published

      async-foreach

      An optionally-asynchronous forEach with an interesting interface.

      • v0.1.3
      • 48.52
      • Published

      index-array-by

      A utility function to index arrays by any criteria

      • v1.4.2
      • 48.49
      • Published

      compute-lcm

      Computes the least common multiple (lcm).

      • v1.1.2
      • 48.43
      • 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.37
      • Published

      array-to-error

      Create an error from an array of error messages

      • v1.1.1
      • 48.34
      • Published

      dtype

      Return a data type from a string representing the type

      • v2.0.0
      • 48.14
      • 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
      • 48.11
      • 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
      • 48.07
      • Published

      seededshuffle

      Shuffle and unshuffle an array by seed/key.

      • v0.2.0
      • 48.05
      • 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
      • 48.05
      • Published

      @thi.ng/zipper

      Functional tree editing, manipulation & navigation

      • v2.1.149
      • 47.89
      • Published

      sort-object

      Sort the keys in an object.

      • v3.0.3
      • 47.85
      • Published

      sort-asc

      Sort array elements in ascending order.

      • v0.2.0
      • 47.84
      • Published

      sort-desc

      Sort array elements in descending order.

      • v0.2.0
      • 47.73
      • Published

      run-waterfall

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

      • v1.1.7
      • 47.65
      • Published

      dup

      Initialize an array of arrays to a constant

      • v1.0.0
      • 47.63
      • Published

      array-find

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

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

      array-range

      creates a new array with given range

      • v1.0.1
      • 47.27
      • Published

      tiny-each-async

      Asynchronous iterator function for parallel processing.

      • v2.0.3
      • 47.22
      • 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.06
      • Published

      filled-array

      Returns an array filled with the specified input

      • v2.2.0
      • 47.04
      • Published

      as-array

      Make any value an array. No dependencies.

      • v2.0.0
      • 47.03
      • Published

      array-map

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

      • v0.0.1
      • 47.00
      • 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
      • 46.89
      • Published

      @thi.ng/arrays

      Array / Arraylike utilities

      • v2.13.11
      • 46.76
      • Published

      ndarray

      Multidimensional Arrays

      • v1.0.19
      • 46.74
      • 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
      • 46.72
      • Published

      flat-util

      Flatten a nested array.

      • v1.1.11
      • 46.57
      • Published

      on-change

      Watch an object or array for changes

      • v5.0.1
      • 46.51
      • 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
      • 46.48
      • 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
      • 46.43
      • Published

      to-length

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

      • v1.0.1
      • 46.41
      • Published

      hasharray

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

      • v1.1.2
      • 46.37
      • Published

      dank-map

      A map function that can map over almost anything.

      • v0.1.0
      • 46.35
      • Published

      dotenv-parse-variables

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

      • v2.0.0
      • 46.34
      • 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
      • 46.29
      • Published

      iota-array

      Generates an array of consecutive integers starting at 0

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

      array-reduce

      `[].reduce()` for old browsers

      • v0.0.0
      • 46.20
      • Published

      p-iteration

      Make array iteration easy when using async/await and Promises

      • v1.1.8
      • 46.18
      • Published

      @thi.ng/equiv

      Extensible deep value equivalence checking for any data types

      • v2.1.92
      • 46.16
      • Published

      data-bind-mapper

      Bind data arrays to any type of JS objects

      • v1.0.3
      • 46.11
      • Published

      @stdlib/array-base-copy

      Copy the elements of an array-like object to a new generic array.

      • v0.2.2
      • 46.10
      • Published

      remove-array-items

      remove items from a javascript array without generating memory garbage

      • v3.0.0
      • 46.04
      • 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
      • 45.98
      • Published

      defaulty

      Copies missing properties to the target object.

      • v2.1.0
      • 45.97
      • Published

      is-empty

      Check whether a value is "empty".

      • v1.2.0
      • 45.92
      • Published

      shallow

      Object/Array shallow copy

      • v1.0.0
      • 45.90
      • Published

      expand-braces

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

      • v0.1.2
      • 45.48
      • Published

      @mobily/ts-belt

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

      • v3.13.1
      • 45.43
      • Published

      deep-for-each

      Recursively iterates over arrays and objects

      • v3.0.0
      • 45.33
      • Published

      array-hyper-unique

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

      • v2.1.6
      • 45.23
      • Published

      rtrim-array

      Removes specified values from the end of an array.

      • v1.1.0
      • 45.21
      • Published

      sort-on

      Sort an array on an object property

      • v6.1.1
      • 45.20
      • Published

      ndarray-pack

      Packs an array-of-arrays into a single ndarray

      • v1.2.1
      • 44.87
      • Published

      to-array-buffer

      Convert any binary data to ArrayBuffer

      • v3.2.0
      • 44.57
      • Published

      reduce-unique

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

      • v2.0.1
      • 44.49
      • 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
      • 44.48
      • Published

      sort-by

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

      • v1.2.0
      • 44.42
      • Published

      array.prototype.foreach

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

      • v1.0.7
      • 44.35
      • Published

      arr-rotate

      Rotate all items in an array

      • v1.0.0
      • 44.30
      • Published

      lazy-property

      Lazily initialized properties for objects

      • v1.0.0
      • 44.19
      • Published

      2

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

      • v3.0.0
      • 44.10
      • Published

      array-bounds

      Find [nd-]array min/max values

      • v1.0.1
      • 44.10
      • Published

      array-rearrange

      Rearrange array elements by index array

      • v2.2.2
      • 44.07
      • Published

      section-iterator

      Simple iterator for flat and multi section lists

      • v2.0.0
      • 44.03
      • Published

      get-set-props

      List of getter/setter properties for JavaScript types

      • v0.2.0
      • 43.98
      • Published

      obj-props

      List of properties for JavaScript objects

      • v2.0.0
      • 43.53
      • Published

      js-types

      List of JavaScript types

      • v4.0.0
      • 43.53
      • Published

      to-choices

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

      • v0.2.0
      • 43.46
      • Published

      common-sequence

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

      • v3.0.0
      • 43.35
      • Published

      humanize-list

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

      • v1.0.1
      • 43.13
      • Published

      p-series

      Run promise-returning & async functions in series

      • v3.0.0
      • 43.05
      • Published

      fast-array-diff

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

      • v1.1.0
      • 43.01
      • Published

      compute-dot

      Computes the dot product between two numeric arrays.

      • v1.1.0
      • 42.93
      • Published

      array-shuffle

      Randomize the order of items in an array

      • v3.0.0
      • 42.82
      • 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
      • 42.54
      • Published

      calc-stats

      Memory-Aware Statistical Calculations

      • v2.6.0
      • 42.53
      • Published

      fast-shuffle

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

      • v6.1.1
      • 42.52
      • Published

      array.prototype.tospliced

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

      • v1.1.5
      • 42.51
      • Published

      @stdlib/utils-index-of

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

      • v0.2.2
      • 42.48
      • Published

      is-even

      Return true if the given number is even.

      • v1.0.0
      • 42.47
      • Published

      sort-object-keys2

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

      • v3.0.7
      • 42.44
      • Published

      data-joint

      Perform data joins with any type of JS objects

      • v1.3.3
      • 42.38
      • Published

      dotsplit.js

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

      • v1.1.0
      • 42.36
      • 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.31
      • Published

      is-circular

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

      • v1.0.2
      • 42.23
      • Published

      compute-l2norm

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

      • v1.1.0
      • 42.21
      • Published

      hifo

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

      • v1.0.0
      • 42.17
      • Published

      101

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

      • v1.6.3
      • 42.17
      • 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
      • 42.15
      • Published

      iterable-to-stream

      Converts iterable objects into readable streams.

      • v2.0.0
      • 42.03
      • Published

      group-array

      Group array of objects into lists.

      • v1.0.0
      • 42.01
      • Published

      just-flush

      returns a copy of an array or object with null/undefined members removed

      • v2.3.0
      • 41.94
      • Published

      gammautils

      Lots of utilities for Node.js

      • v0.0.81
      • 41.94
      • Published

      router-ips

      List of common default router IP addresses

      • v2.0.0
      • 41.92
      • Published

      dank-each

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

      • v1.0.0
      • 41.90
      • Published

      filter-object

      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.

      • v3.0.0
      • 41.88
      • Published

      array-to-tree

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

      • v3.3.2
      • 41.68
      • Published

      @bbob/parser

      A BBCode to AST Parser part of @bbob

      • v4.2.0
      • 41.66
      • Published

      xdim

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

      • v1.10.1
      • 41.58
      • Published

      notation

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

      • v2.0.0
      • 41.51
      • Published

      deep-override

      recursive object extending & overriding

      • v1.0.2
      • 41.51
      • 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
      • 41.45
      • Published

      listify

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

      • v1.0.3
      • 41.39
      • Published

      ranges-sort

      Sort string index ranges

      • v6.0.14
      • 41.36
      • Published

      object-pairs

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

      • v0.1.0
      • 41.33
      • Published

      fast-min

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

      • v0.4.0
      • 41.24
      • Published

      chunk

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

      • v0.0.3
      • 41.20
      • Published

      deep-map

      Transforms nested values of complex objects

      • v2.0.0
      • 41.17
      • Published

      montag

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

      • v1.2.1
      • 41.13
      • Published

      stream-array

      Pipe an Array through Node.js streams

      • v1.1.2
      • 41.11
      • Published

      is-array

      Check if the given value is an Array

      • v1.0.1
      • 40.93
      • Published

      shuffle-array

      Randomize the order of the elements in a given array.

      • v1.0.1
      • 40.75
      • Published

      array-next

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

      • v0.0.1
      • 40.59
      • Published

      deep-map-keys

      Transforms nested keys of complex objects

      • v2.0.1
      • 40.58
      • Published

      morphism

      Do not repeat anymore your objects transformations.

      • v1.12.3
      • 40.58
      • Published

      array-keyed-map

      a map from arrays of values to values

      • v2.1.3
      • 40.51
      • Published

      combinations

      find all combinations from array

      • v1.0.0
      • 40.38
      • Published

      array-to-table

      Generate markdown table from array of objects

      • v1.0.1
      • 40.28
      • 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
      • 40.25
      • Published

      fast-max

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

      • v0.5.1
      • 40.24
      • Published

      find-insert-index

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

      • v0.0.1
      • 40.20
      • 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
      • 40.05
      • Published

      form-fix-array

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

      • v1.0.0
      • 40.00
      • Published

      methmeth

      Execute a method out from an object.

      • v1.1.0
      • 39.99
      • Published

      make-unique

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

      • v1.0.4
      • 39.93
      • Published

      did-you-mean

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

      • v0.0.1
      • 39.86
      • Published

      typescript-collections

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

      • v1.3.3
      • 39.76
      • Published

      new-array

      create a new array filled with a value, or zero

      • v1.0.0
      • 39.73
      • Published