JSPM

Found 434 results for stdutil

@stdlib/utils-do-while-each

While a test condition is true, invoke a function for each element in a collection.

  • v0.2.2
  • 10.30
  • Published

@stdlib/utils-map-function

Invoke a function n times and return an array of accumulated function return values.

  • v0.2.2
  • 10.21
  • Published

@stdlib/utils-async-none-by

Test whether all elements in a collection fail a test implemented by a predicate function.

  • v0.2.2
  • 10.12
  • Published

@stdlib/utils-map2

Apply a function to elements in two input arrays and assign the results to an output array.

  • v0.2.1
  • 10.08
  • Published

@stdlib/utils-async-try-catch

If a function does not return an error, invoke a callback with the function result; otherwise, invoke a callback with a value `y`.

  • v0.2.2
  • 10.01
  • Published

@stdlib/utils-try-catch

If a function does not throw, return the function return value; otherwise, return `y`.

  • v0.2.2
  • 10.00
  • Published

@stdlib/utils-while-each-right

While a test condition is true, invoke a function for each element in a collection, iterating from right to left.

  • v0.2.2
  • 9.94
  • Published

@stdlib/utils-key-by-right

Convert a collection to an object whose keys are determined by a provided function and whose values are the collection values, iterating from right to left.

  • v0.2.2
  • 9.94
  • Published

@stdlib/utils-async-every-by-right

Test whether all elements in a collection pass a test implemented by a predicate function, iterating from right to left.

  • v0.2.2
  • 9.69
  • Published

@stdlib/iter-do-while-each

Create an iterator which, while a test condition is true, invokes a function for each iterated value before returning the iterated value.

  • v0.1.1
  • 9.58
  • Published

@stdlib/utils-uncurry

Transform a curried function into a function invoked with multiple arguments.

  • v0.2.2
  • 9.48
  • Published

@stdlib/utils-entries-in

Return an array of an object's own and inherited enumerable property key-value pairs.

  • v0.2.2
  • 9.48
  • Published

@stdlib/utils-some-own-by

Test whether some `own` properties of a provided object satisfy a predicate function for at least `n` properties.

  • v0.1.1
  • 9.34
  • Published

@stdlib/utils-pick-by

Return a partial object copy containing properties for which a predicate (function) returns a truthy value.

  • v0.2.2
  • 9.28
  • Published

@stdlib/utils-async-try-then

If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.

  • v0.2.2
  • 9.02
  • Published

@stdlib/os-arch-cli

Operating system CPU architecture for which the JavaScript runtime binary was compiled.

  • v0.2.2
  • 8.83
  • Published

@stdlib/utils-map3d

Apply a function to each nested element in a three-dimensional nested array and assign the result to a nested element in a new three-dimensional nested array.

  • v0.2.2
  • 8.70
  • Published

@stdlib/utils-reduce2d

Reduce the number of dimensions by one of a two-dimensional nested array by applying a function against an accumulator and each element along the innermost dimension and returning the accumulation results as a one-dimensional array.

  • v0.2.2
  • 8.54
  • Published

@stdlib/utils-map5d

Apply a function to each nested element in a five-dimensional nested array and assign the result to a nested element in a new five-dimensional nested array.

  • v0.2.2
  • 8.52
  • Published

@stdlib/utils-inmap-right

Invoke a function for each element in a collection and update the collection in-place, iterating from right to left.

  • v0.2.2
  • 8.34
  • Published

@stdlib/utils-reduce

Apply a function against an accumulator and each element in an array and return the accumulated result.

  • v0.2.1
  • 8.34
  • Published

@stdlib/utils-if-then

If a condition is truthy, invoke `x`; otherwise, invoke `y`.

  • v0.2.2
  • 8.20
  • Published

@stdlib/utils-any-by-right

Test whether at least one element in a collection passes a test implemented by a predicate function, iterating from right to left.

  • v0.2.2
  • 8.13
  • Published

@stdlib/utils-push

Add one or more elements to the end of a collection.

  • v0.2.2
  • 8.13
  • Published

@stdlib/utils-map2-right

Apply a function to elements in two input arrays while iterating from right to left and assign the results to an output array.

  • v0.2.1
  • 8.03
  • Published

@stdlib/utils-until-each-right

Until a test condition is true, invoke a function for each element in a collection, iterating from right to left.

  • v0.2.2
  • 8.03
  • Published

@stdlib/utils-decorate-after

Decorate a provided function such that the function's return value is provided as an argument to another function.

  • v0.2.2
  • 7.49
  • Published

@stdlib/utils-try-then

If a function does not throw, return the function return value; otherwise, return the return value of a second function.

  • v0.2.2
  • 7.18
  • Published

@stdlib/utils-do-until-each

Until a test condition is true, invoke a function for each element in a collection.

  • v0.2.2
  • 6.70
  • Published

@stdlib/iter-cusome

Create an iterator which cumulatively tests whether at least `n` iterated values are truthy.

  • v0.1.0
  • 6.70
  • Published

@stdlib/utils-every-by

Test whether all elements in a collection pass a test implemented by a predicate function.

  • v0.2.2
  • 6.70
  • Published

@stdlib/utils-any-by

Test whether at least one element in a collection passes a test implemented by a predicate function.

  • v0.2.2
  • 6.49
  • Published

@stdlib/iter-do-until-each

Create an iterator which, while a test condition is false, invokes a function for each iterated value before returning the iterated value.

  • v0.1.1
  • 5.99
  • Published

@stdlib/utils-group-own

Group an object's own property values according to an indicator function.

  • v0.2.2
  • 5.88
  • Published

@stdlib/utils-every

Test whether all elements in a collection are truthy.

  • v0.2.2
  • 5.87
  • Published

@stdlib/utils-curry

Transform a function into a sequence of functions each accepting a single argument.

  • v0.2.2
  • 5.81
  • Published

@stdlib/utils-some-by-right

Test whether a collection contains at least `n` elements which pass a test implemented by a predicate function, iterating from right to left.

  • v0.2.2
  • 5.72
  • Published

@stdlib/iter-while-each

Create an iterator which, while a test condition is true, invokes a function for each iterated value before returning the iterated value.

  • v0.2.2
  • 5.69
  • Published

@stdlib/utils-any-own-by

Test whether whether any 'own' property of a provided object satisfies a predicate function.

  • v0.1.1
  • 5.00
  • Published

@stdlib/iter-until-each

Create an iterator which, while a test condition is false, invokes a function for each iterated value before returning the iterated value.

  • v0.1.1
  • 5.00
  • Published

@stdlib/utils-every-own-by

Test whether all own properties of an object pass a test implemented by a predicate function.

  • v0.1.1
  • 4.95
  • Published

@stdlib/utils-none-in-by

Test whether every property in an object fails a test implemented by a predicate function.

  • v0.1.1
  • 4.90
  • Published

@stdlib/utils-bifurcate-in

Split an object's own and inherited property values into two groups according to a predicate function.

  • v0.2.2
  • 4.86
  • Published

@stdlib/utils-some-in-by

Test whether an object contains at least n properties (own and inherited) which pass a test implemented by a predicate function.

  • v0.1.1
  • 4.77
  • Published

@stdlib/utils-append

Add elements from one collection to the end of another collection.

  • v0.2.2
  • 4.77
  • Published

@stdlib/utils-map-keys

Map keys from one object to a new object having the same values.

  • v0.2.2
  • 4.77
  • Published

@stdlib/utils-none

Test whether all elements in a collection are falsy.

  • v0.2.2
  • 4.75
  • Published

@stdlib/utils-prepend

Add elements from one collection to the beginning of another collection.

  • v0.2.2
  • 3.78
  • Published

@stdlib/utils-dsv

Standard utilities for working with data formatted as delimiter-separated values (DSV).

  • v0.2.2
  • 3.78
  • Published

@stdlib/utils-key-by

Convert a collection to an object whose keys are determined by a provided function and whose values are the collection values.

  • v0.2.2
  • 3.75
  • Published

@stdlib/utils-until-each

Until a test condition is true, invoke a function for each element in a collection.

  • v0.2.2
  • 3.75
  • Published

@stdlib/utils-map-reduce

Perform a single-pass map-reduce operation against each element in an array and return the accumulated result.

  • v0.2.1
  • 3.71
  • Published

@stdlib/utils-group-in

Group an object's own and inherited property values according to an indicator function.

  • v0.2.2
  • 3.71
  • Published

@stdlib/iter-cuany

Create an iterator which cumulatively tests whether at least one iterated value is truthy.

  • v0.1.1
  • 3.68
  • Published

@stdlib/utils-some-by

Test whether a collection contains at least `n` elements which pass a test implemented by a predicate function.

  • v0.2.2
  • 3.67
  • Published

@stdlib/utils-any

Test whether at least one element in a collection is truthy.

  • v0.2.2
  • 3.61
  • Published

@stdlib/utils-shift

Remove and return the first element of a collection.

  • v0.2.2
  • 3.59
  • Published

@stdlib/utils-every-by-right

Test whether all elements in a collection pass a test implemented by a predicate function, iterating from right to left.

  • v0.2.2
  • 3.59
  • Published

@stdlib/utils-dsv-base

Standard base utilities for working with data formatted as delimiter-separated values (DSV).

  • v0.2.2
  • 3.59
  • Published

@stdlib/utils-some

Test whether a collection contains at least `n` elements which are truthy.

  • v0.2.2
  • 2.17
  • Published

@stdlib/utils-unshift

Add one or more elements to the beginning of a collection.

  • v0.2.2
  • 2.17
  • Published

@stdlib/utils-pop

Remove and return the last element of a collection.

  • v0.2.2
  • 2.15
  • Published

@stdlib/utils-none-by-right

Test whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left.

  • v0.2.2
  • 2.11
  • Published

@stdlib/utils-none-by

Test whether all elements in a collection fail a test implemented by a predicate function.

  • v0.2.2
  • 2.11
  • Published

@stdlib/utils-map-right

Apply a function to each element in an array and assign the result to an element in an output array, iterating from right to left.

  • v0.2.1
  • 0.00
  • Published

@stdlib/utils-map2d

Apply a function to each nested element in an array of arrays and assign the result to a nested element in a new array of arrays.

  • v0.2.2
  • 0.00
  • Published

@stdlib/utils-none-own-by

Tests whether every own property of an object fails a test implemented by a predicate function.

  • v0.1.1
  • 0.00
  • Published

@stdlib/utils-map4d

Apply a function to each nested element in a four-dimensional nested array and assign the result to a nested element in a new four-dimensional nested array.

  • v0.2.2
  • 0.00
  • Published

@stdlib/utils-every-in-by

Test whether all properties (own and inherited) of an object pass a test implemented by a predicate function.

  • v0.1.1
  • 0.00
  • Published

@stdlib/utils-any-in-by

Test whether at least one property in an object passes a test implemented by a predicate function.

  • v0.1.1
  • 0.00
  • Published

@stdlib/utils-map-reduce-right

Perform a single-pass map-reduce operation against each element in an array while iterating from right to left and return the accumulated result.

  • v0.2.1
  • 0.00
  • Published

@stdlib/utils-while-each

While a test condition is true, invoke a function for each element in a collection.

  • v0.2.2
  • 0.00
  • Published

@stdlib/utils-nonindex-keys

Return an array of an object's own enumerable property names which are not integer indices.

  • v0.2.2
  • 0.00
  • Published