JSPM

Found 443 results for stdutils

@stdlib/utils-async-reduce-right

Apply a function against an accumulator and each element in a collection and return the accumulated result, iterating from right to left.

  • v0.2.2
  • 13.70
  • Published

@stdlib/iter-flow

Create a fluent interface for chaining together iterator methods.

  • v0.2.2
  • 13.61
  • Published

@stdlib/process-getegid

Return the effective numeric group identity of a calling process.

  • v0.2.2
  • 13.54
  • Published

@stdlib/utils-object-inverse-by

Invert an object, such that keys become values and values become keys, according to a transform function.

  • v0.2.2
  • 13.37
  • Published

@stdlib/utils-curry-right

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

  • v0.2.2
  • 13.06
  • Published

@stdlib/utils-async-some-by

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

  • v0.2.2
  • 12.85
  • Published

@stdlib/iter-step

Create an iterator which returns a sequence of numbers according to a specified increment.

  • v0.2.2
  • 12.65
  • Published

@stdlib/utils-for-own

Invoke a function for each own enumerable property of an object.

  • v0.2.2
  • 12.60
  • Published

@stdlib/utils-async-inmap

Invoke a function for each element in a collection and update the collection in-place.

  • v0.2.2
  • 12.55
  • Published

@stdlib/iter-concat

Create an iterator which iterates over the values of two or more iterators.

  • v0.2.2
  • 12.40
  • Published

@stdlib/utils-async-reduce

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

  • v0.2.2
  • 12.37
  • Published

@stdlib/utils-do-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
  • 11.85
  • Published

@stdlib/utils-map

Apply a function to each element in an array and assign the result to an element in an output array.

  • v0.2.1
  • 11.63
  • Published

@stdlib/iter-filter

Create an iterator which filters the values of another iterator according to a predicate function.

  • v0.2.2
  • 11.61
  • Published

@stdlib/utils-keys-in

Return an array of an object's own and inherited enumerable property names.

  • v0.2.2
  • 11.36
  • Published

@stdlib/iter-intersection

Create an iterator which returns the intersection of two or more iterators.

  • v0.2.2
  • 11.33
  • Published

@stdlib/iter-mapn

Create an iterator which transforms iterated values from two or more iterators by applying the iterated values as arguments to a provided function.

  • v0.2.2
  • 11.33
  • Published

@stdlib/iter-datespace

Create an iterator which returns evenly spaced dates over a specified interval.

  • v0.2.2
  • 11.29
  • Published

@stdlib/utils-entries

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

  • v0.2.2
  • 11.01
  • Published

@stdlib/iter-none

Test whether all iterated values are falsy.

  • v0.2.2
  • 10.98
  • 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
  • 10.67
  • Published

@stdlib/iter-incrspace

Create an iterator which returns evenly spaced numbers according to a specified increment.

  • v0.2.2
  • 10.67
  • Published

@stdlib/iter-some

Test whether at least `n` iterated values are truthy.

  • v0.2.2
  • 10.59
  • Published

@stdlib/utils-async-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
  • 10.30
  • Published

@stdlib/utils-uncurry

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

  • v0.2.2
  • 10.23
  • Published

@stdlib/utils-values-in

Return an array of an object's own and inherited enumerable property values.

  • v0.2.2
  • 10.20
  • Published

@stdlib/iter-every-by

Test whether every iterated value passes a test implemented by a predicate function.

  • v0.2.2
  • 10.04
  • 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
  • 9.85
  • Published

@stdlib/os-tmpdir

Return the directory for storing temporary files.

  • v0.2.2
  • 9.85
  • Published

@stdlib/utils-try-catch

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

  • v0.2.2
  • 9.85
  • Published

@stdlib/iter-any

Test whether at least one iterated value is truthy.

  • v0.2.2
  • 9.84
  • Published

@stdlib/utils-map-arguments

Create a function that applies arguments to a provided function after transforming arguments according to a callback function.

  • v0.2.2
  • 9.84
  • 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
  • 9.49
  • Published

@stdlib/iter-shift

Create an iterator which skips the first value of a provided iterator.

  • v0.2.2
  • 9.42
  • Published

@stdlib/utils-if-else

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

  • v0.2.2
  • 9.42
  • Published

@stdlib/utils-properties

Return an array of an object's own enumerable and non-enumerable property names and symbols.

  • v0.2.2
  • 9.34
  • Published

@stdlib/iter-dedupe-by

Create an iterator which removes consecutive values that resolve to the same value according to a provided function.

  • v0.2.2
  • 9.32
  • Published

@stdlib/utils-if-then

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

  • v0.2.2
  • 9.32
  • Published

@stdlib/utils-async-if-then

If a predicate function returns a truthy value, invoke `x`; otherwise, invoke `y`.

  • v0.2.2
  • 9.29
  • Published

@stdlib/utils-real-min

Return the smallest positive normal value capable of being represented by a numeric real type.

  • v0.2.2
  • 9.24
  • Published

@stdlib/utils-omit-by

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

  • v0.2.2
  • 8.97
  • 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
  • 8.89
  • Published

@stdlib/iter-for-each

Create an iterator which invokes a function for each iterated value before returning the iterated value.

  • v0.2.2
  • 8.79
  • Published

@stdlib/utils-prepend

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

  • v0.2.2
  • 8.79
  • Published

@stdlib/utils-size-of

Return the size (in bytes) of the canonical binary representation of a specified numeric type.

  • v0.2.2
  • 8.79
  • 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
  • 8.77
  • 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.49
  • Published

@stdlib/utils-curry

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

  • v0.2.2
  • 8.46
  • Published

@stdlib/process-argv

Array containing command-line arguments passed when launching the calling process.

  • v0.2.1
  • 8.39
  • 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
  • 7.93
  • Published

@stdlib/utils-async-none-by

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

  • v0.2.2
  • 7.93
  • 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
  • 7.92
  • Published

@stdlib/utils-async-if-else

If a predicate function returns a truthy value, return `x`; otherwise, return `y`.

  • v0.2.2
  • 7.92
  • Published

@stdlib/utils-do-while-each

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

  • v0.2.2
  • 7.91
  • Published

@stdlib/utils-reduce

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

  • v0.2.1
  • 7.84
  • Published

@stdlib/utils-do-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
  • 7.84
  • 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
  • 7.84
  • Published

@stdlib/utils-async-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
  • 7.76
  • Published

@stdlib/utils-real-max

Return the maximum finite value capable of being represented by a numeric real type.

  • v0.2.2
  • 7.76
  • Published

@stdlib/utils-safe-int-max

Return the maximum safe integer capable of being represented by a numeric real type.

  • v0.2.2
  • 7.58
  • Published

@stdlib/iter-some-by

Test whether at least `n` iterated values pass a test implemented by a predicate function.

  • v0.2.2
  • 7.58
  • Published

@stdlib/utils-map-function

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

  • v0.2.2
  • 7.58
  • Published

@stdlib/utils-reduce-right

Apply a function against an accumulator and each element in an array while iterating from right to left and return the accumulated result.

  • v0.2.1
  • 7.55
  • Published

@stdlib/utils-nonindex-keys

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

  • v0.2.2
  • 7.31
  • Published

@stdlib/iter-dedupe

Create an iterator which removes consecutive duplicated values.

  • v0.2.2
  • 7.29
  • 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
  • 7.29
  • Published

@stdlib/utils-entries-in

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

  • v0.2.2
  • 7.29
  • Published

@stdlib/utils-find

Find elements in an array-like object that satisfy a test condition.

  • v0.2.2
  • 6.85
  • Published

@stdlib/os-arch

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

  • v0.2.2
  • 6.85
  • 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.83
  • Published

@stdlib/iter-cusome

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

  • v0.1.0
  • 6.83
  • Published

@stdlib/utils-group-own

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

  • v0.2.2
  • 6.83
  • Published

@stdlib/iter-head

Create an iterator which returns the first `n` values of a provided iterator.

  • v0.2.2
  • 6.63
  • Published

@stdlib/utils-async-any-by

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

  • v0.2.2
  • 6.63
  • Published

@stdlib/iter-reject

Create an iterator which rejects the values of another iterator according to a predicate function.

  • v0.2.2
  • 6.63
  • 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
  • 6.63
  • 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
  • 6.63
  • 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
  • 6.61
  • Published

@stdlib/utils-push

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

  • v0.2.2
  • 6.61
  • 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
  • 6.58
  • Published

@stdlib/iter-strided-by

Create an iterator which steps according to a provided callback function.

  • v0.2.2
  • 6.53
  • Published

@stdlib/os-arch-cli

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

  • v0.2.2
  • 6.53
  • Published

@stdlib/utils-map-keys

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

  • v0.2.2
  • 6.46
  • Published

@stdlib/utils-every-by

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

  • v0.2.2
  • 5.99
  • 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
  • 5.82
  • Published

@stdlib/iter-unshift

Create an iterator which prepends values to the beginning of a provided iterator.

  • v0.2.2
  • 5.82
  • 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
  • 5.80
  • Published

@stdlib/iter-none-by

Test whether every iterated value fails a test implemented by a predicate function.

  • v0.2.2
  • 5.78
  • Published

@stdlib/iter-unique-by

Create an iterator which returns unique values according to a predicate function.

  • v0.2.2
  • 5.78
  • Published

@stdlib/iter-any-by

Test whether at least one iterated value passes a test implemented by a predicate function.

  • v0.2.2
  • 5.73
  • 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.73
  • Published

@stdlib/utils-for-in

Invoke a function for each own and inherited enumerable property of an object.

  • v0.2.2
  • 5.73
  • Published

@stdlib/utils-bifurcate-own

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

  • v0.2.2
  • 5.73
  • 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.67
  • 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.01
  • 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
  • 4.99
  • Published

@stdlib/utils-group-in

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

  • v0.2.2
  • 4.99
  • Published

@stdlib/iter-replicate

Create an iterator which replicates each iterated value a specified number of times.

  • v0.2.2
  • 4.85
  • 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
  • 4.83
  • Published