JSPM

Found 434 results for stdutil

@stdlib/utils-keys

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

  • v0.2.2
  • 58.29
  • Published

@stdlib/utils-index-of

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

  • v0.2.2
  • 57.87
  • Published

@stdlib/utils-copy

Copy or deep clone a value to an arbitrary depth.

  • v0.2.2
  • 56.90
  • Published

@stdlib/utils-inherit

Implement prototypical inheritance by replacing the prototype of one constructor with the prototype of another constructor.

  • v0.2.2
  • 49.23
  • Published

@stdlib/utils-pick

Return a partial object copy containing only specified keys.

  • v0.2.2
  • 49.04
  • Published

@stdlib/utils-omit

Return a partial object copy excluding specified keys.

  • v0.2.2
  • 48.48
  • Published

@stdlib/iter

Standard iterator utilities.

  • v0.3.3
  • 45.66
  • Published

@stdlib/os-platform

Platform on which the current process is running.

  • v0.2.2
  • 38.76
  • Published

@stdlib/process-exec-path

Absolute pathname of the executable which started the current Node.js process.

  • v0.2.2
  • 34.60
  • Published

@stdlib/utils-count-by

Group values according to an indicator function and return group counts.

  • v0.2.2
  • 33.54
  • Published

@stdlib/utils-nary-function

Create a function that invokes a provided function with a specified number of arguments.

  • v0.2.2
  • 26.69
  • Published

@stdlib/iter-linspace

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

  • v0.2.2
  • 26.27
  • Published

@stdlib/iter-slice

Create an iterator which returns a subsequence of iterated values from a provided iterator.

  • v0.2.2
  • 26.18
  • Published

@stdlib/iter-pop

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

  • v0.2.2
  • 26.07
  • Published

@stdlib/utils-group

Group values as arrays associated with distinct keys.

  • v0.2.2
  • 25.34
  • Published

@stdlib/utils-keys-in

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

  • v0.2.2
  • 25.14
  • Published

@stdlib/iter-last

Consume an entire iterator and return the last iterated value.

  • v0.2.2
  • 25.03
  • Published

@stdlib/iter-map

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

  • v0.2.2
  • 24.41
  • Published

@stdlib/utils-pluck

Extract a property value from each element of an object array.

  • v0.2.2
  • 24.38
  • Published

@stdlib/utils-values

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

  • v0.2.2
  • 23.97
  • Published

@stdlib/utils-entries

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

  • v0.2.2
  • 22.55
  • Published

@stdlib/os-arch

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

  • v0.2.2
  • 22.51
  • Published

@stdlib/utils-map-function

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

  • v0.2.2
  • 22.47
  • Published

@stdlib/utils-if-else

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

  • v0.2.2
  • 22.44
  • Published

@stdlib/process-getegid

Return the effective numeric group identity of a calling process.

  • v0.2.2
  • 22.33
  • Published

@stdlib/utils-async-inmap

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

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

@stdlib/utils-find

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

  • v0.2.2
  • 22.20
  • Published

@stdlib/utils-group-in

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

  • v0.2.2
  • 22.09
  • Published

@stdlib/utils-curry

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

  • v0.2.2
  • 22.08
  • Published

@stdlib/process-geteuid

Return the effective numeric user identity of a calling process.

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

@stdlib/utils-async-every-by

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

  • v0.2.2
  • 22.07
  • Published

@stdlib/utils-async-if-then

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

  • v0.2.2
  • 22.05
  • Published

@stdlib/iter-unshift

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

  • v0.2.2
  • 22.04
  • Published

@stdlib/utils-prepend

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

  • v0.2.2
  • 22.02
  • Published

@stdlib/utils-do-until-each

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

  • v0.2.2
  • 22.01
  • Published

@stdlib/utils-unzip

Unzip a zipped array (i.e., a nested array of tuples).

  • v0.2.2
  • 22.00
  • Published

@stdlib/os-configdir

Return a directory for user-specific configuration files.

  • v0.2.2
  • 22.00
  • Published

@stdlib/utils-unshift

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

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

@stdlib/utils-for-own

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

  • v0.2.2
  • 21.92
  • Published

@stdlib/iter-filter-map

Create an iterator which both filters and maps the values of another iterator.

  • v0.2.2
  • 21.88
  • Published

@stdlib/utils-group-own

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

  • v0.2.2
  • 21.88
  • Published

@stdlib/utils-omit-by

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

  • v0.2.2
  • 21.86
  • Published

@stdlib/iter-for-each

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

  • v0.2.2
  • 21.83
  • Published

@stdlib/iter-unitspace

Create an iterator which returns numbers incremented by one.

  • v0.2.2
  • 21.78
  • Published

@stdlib/os-tmpdir

Return the directory for storing temporary files.

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

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

@stdlib/utils-values-in

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

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

@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
  • 21.69
  • Published

@stdlib/iter-reject

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

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

@stdlib/utils-nonindex-keys

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

  • v0.2.2
  • 21.65
  • Published

@stdlib/process-argv

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

  • v0.2.1
  • 21.65
  • Published

@stdlib/utils-map-keys

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

  • v0.2.2
  • 21.61
  • Published

@stdlib/utils-try-catch

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

  • v0.2.2
  • 21.60
  • Published

@stdlib/iter-unique-by

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

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

@stdlib/utils-every

Test whether all elements in a collection are truthy.

  • v0.2.2
  • 21.55
  • 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
  • 21.53
  • 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
  • 21.53
  • 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
  • 21.50
  • Published

@stdlib/iter-datespace

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

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

@stdlib/iter-constant

Create an iterator which always returns the same value.

  • v0.2.2
  • 21.43
  • Published

@stdlib/utils-until

Invoke a function until a test condition is true.

  • v0.2.2
  • 21.36
  • Published

@stdlib/utils-zip

Generate array tuples from input arrays.

  • v0.2.2
  • 21.36
  • Published

@stdlib/iter-replicate-by

Create an iterator which replicates each iterated value according to a provided function.

  • v0.2.2
  • 21.33
  • Published

@stdlib/utils-for-in

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

  • v0.2.2
  • 21.29
  • Published

@stdlib/utils-append

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

  • v0.2.2
  • 21.29
  • Published

@stdlib/utils-if-then

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

  • v0.2.2
  • 21.28
  • Published

@stdlib/iter-counter

Create an iterator which iteratively returns the number of iterated values.

  • v0.2.2
  • 21.24
  • Published

@stdlib/utils-async-if-else

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

  • v0.2.2
  • 21.22
  • Published

@stdlib/iter-none

Test whether all iterated values are falsy.

  • v0.2.2
  • 21.20
  • Published

@stdlib/iter-unique

Create an iterator which returns unique values.

  • v0.2.2
  • 21.20
  • Published

@stdlib/iter-some-by

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

  • v0.2.2
  • 21.17
  • Published

@stdlib/utils-until-each

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

  • v0.2.2
  • 21.16
  • Published

@stdlib/utils-pop

Remove and return the last element of a collection.

  • v0.2.2
  • 21.16
  • Published

@stdlib/iter-step

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

  • v0.2.2
  • 21.12
  • Published

@stdlib/utils-every-by

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

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

@stdlib/iter-flow

Create a fluent interface for chaining together iterator methods.

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