@stdlib/utils-do-while-each
While a test condition is true, invoke a function for each element in a collection.
Found 434 results for stdutil
While a test condition is true, invoke a function for each element in a collection.
Return an array of an object's own and inherited enumerable symbol properties.
Invoke a function n times and return an array of accumulated function return values.
Test whether all elements in a collection fail a test implemented by a predicate function.
Apply a function to elements in two input arrays and assign the results to an output array.
Define a configurable read-only property.
If a function does not return an error, invoke a callback with the function result; otherwise, invoke a callback with a value `y`.
Detect native BigInt64Array support.
If a function does not throw, return the function return value; otherwise, return `y`.
While a test condition is true, invoke a function for each element in a collection, iterating from right to left.
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.
Return an array of an object's inherited property names and symbols.
Return the common own property names of two or more objects.
Get a nested property value.
Test whether all elements in a collection pass a test implemented by a predicate function, iterating from right to left.
Create an iterator which, while a test condition is true, invokes a function for each iterated value before returning the iterated value.
Return an array of an object's own non-enumerable symbol properties.
Detect native Symbol support.
Define a memoized read-only object property.
Transform a curried function into a function invoked with multiple arguments.
Return an array of an object's own and inherited enumerable property key-value pairs.
Detect `Object.defineProperty` support.
Test whether some `own` properties of a provided object satisfy a predicate function for at least `n` properties.
Return a partial object copy containing properties for which a predicate (function) returns a truthy value.
Invoke a function for each UTF-16 code unit in a string, iterating from right to left.
Detect native generator function support.
Detect native Proxy function support.
Define a configurable read-only accessor.
Invoke a function for each element in a collection.
If a function does not return an error, invoke a callback with the function result; otherwise, invoke a second function.
Set a nested property value.
Operating system CPU architecture for which the JavaScript runtime binary was compiled.
Return an array of an object's inherited symbol properties.
Detect native WebAssembly support.
Node version.
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.
Invoke a function for each Unicode code point in a string, iterating from right to left.
Detect native ArrayBuffer support.
Invoke a function while a test condition is true.
Detect native Int32Array support.
Detect native BigInt support.
Invoke a function until a test condition is true.
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.
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.
Invoke a function for each element in a collection and update the collection in-place, iterating from right to left.
Return the current user's home directory.
Apply a function against an accumulator and each element in an array and return the accumulated result.
If a condition is truthy, invoke `x`; otherwise, invoke `y`.
Return an array of an object's own and inherited non-enumerable property names.
Detect native Set support.
Test whether at least one element in a collection passes a test implemented by a predicate function, iterating from right to left.
Add one or more elements to the end of a collection.
Execute a set of functions in parallel.
Return an array of an object's own non-enumerable property names.
Apply a function to elements in two input arrays while iterating from right to left and assign the results to an output array.
Until a test condition is true, invoke a function for each element in a collection, iterating from right to left.
Detect native Uint16Array support.
Detect native Uint8ClampedArray support.
Incremental parser for delimiter-separated values (DSV).
Detect native Map support.
Detect native Uint8Array support.
Detect native DataView support.
Detect native WeakMap support.
Decorate a provided function such that the function's return value is provided as an argument to another function.
Detect native Int16Array support.
Detect native Buffer support.
Return an array of an object's inherited writable symbol properties.
Return the directory for storing temporary files.
If a function does not throw, return the function return value; otherwise, return the return value of a second function.
Define a configurable memoized read-only object property.
Stack.
Detect native arrow function support.
Return the current working directory.
Detect native Float32Array support.
Detect native BigUint64Array support.
Until a test condition is true, invoke a function for each element in a collection.
Split values into two groups.
Create an iterator which cumulatively tests whether at least `n` iterated values are truthy.
Test whether all elements in a collection pass a test implemented by a predicate function.
Platform on which the current process is running.
Detect globalThis support.
Group values according to an indicator function.
Detect native Uint32Array support.
Open a URL.
Return an object's own property descriptors.
Number of CPUs.
Detect native Float64Array support.
Detect native WeakSet support.
Test whether at least one element in a collection passes a test implemented by a predicate function.
Invoke a function for each character in a string.
Time a snippet.
Return an array of an object's own non-enumerable property names and symbols.
Create an iterator which, while a test condition is false, invokes a function for each iterated value before returning the iterated value.
Group an object's own property values according to an indicator function.
Test whether all elements in a collection are truthy.
Alias for eval global.
Return an array of an object's inherited enumerable symbol properties.
Return an array of an object's inherited non-enumerable symbol properties.
Transform a function into a sequence of functions each accepting a single argument.
Time a snippet.
Test whether a collection contains at least `n` elements which pass a test implemented by a predicate function, iterating from right to left.
Define a configurable read-write accessor.
Create an iterator which, while a test condition is true, invokes a function for each iterated value before returning the iterated value.
Test whether whether any 'own' property of a provided object satisfies a predicate function.
Create an iterator which, while a test condition is false, invokes a function for each iterated value before returning the iterated value.
Test whether all own properties of an object pass a test implemented by a predicate function.
Define a configurable write-only accessor.
Doubly linked list.
Argument function.
Return an array of an object's own and inherited symbol properties.
Test whether every property in an object fails a test implemented by a predicate function.
Return an array of an object's own writable property names and symbols.
Return an object's own and inherited property descriptors.
Standard async utilities.
Split an object's own and inherited property values into two groups according to a predicate function.
Create a function that invokes a provided function with specified arguments.
Test whether an object contains at least n properties (own and inherited) which pass a test implemented by a predicate function.
Add elements from one collection to the end of another collection.
Map keys from one object to a new object having the same values.
Test whether all elements in a collection are falsy.
Create a function that invokes a provided function according to an argument mask.
Add elements from one collection to the beginning of another collection.
Standard utilities for working with data formatted as delimiter-separated values (DSV).
Convert a collection to an object whose keys are determined by a provided function and whose values are the collection values.
Until a test condition is true, invoke a function for each element in a collection.
Perform a single-pass map-reduce operation against each element in an array and return the accumulated result.
Group an object's own and inherited property values according to an indicator function.
Return the common own and inherited property names of two or more objects.
Return an array of an object's own and inherited writable symbol properties.
Return an array of an object's own writable property names.
Create an iterator which cumulatively tests whether at least one iterated value is truthy.
Extract a nested property value from each element of an object array.
Define a write-only accessor.
Test whether a collection contains at least `n` elements which pass a test implemented by a predicate function.
Test whether at least one element in a collection is truthy.
Remove and return the first element of a collection.
Test whether all elements in a collection pass a test implemented by a predicate function, iterating from right to left.
Return an array of an object's own writable symbol properties.
Standard base utilities for working with data formatted as delimiter-separated values (DSV).
Return an array of an object's inherited writable property names and symbols.
Test whether a collection contains at least `n` elements which are truthy.
Return an object's inherited property descriptors.
Invoke a function while a test condition is true.
Return an array of an object's inherited non-enumerable property names and symbols.
Add one or more elements to the beginning of a collection.
Define a non-enumerable write-only accessor.
Return an array of an object's own and inherited writable property names.
Define (and/or modify) object properties.
Define a memoized object property.
Remove and return the last element of a collection.
Test whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left.
Test whether all elements in a collection fail a test implemented by a predicate function.
Return an array of an object's inherited writable property names.
Convert between POSIX and Windows paths.
Return an array of an object's own and inherited non-enumerable symbol properties.
Parse a string as Newline-Delimited JSON (NDJSON).
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.
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.
Move a property from one object to another object.
Tests whether every own property of an object fails a test implemented by a predicate function.
Invoke a function until a test condition is true.
Wrap a function in a try/catch block.
Function sequence.
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.
Test whether all properties (own and inherited) of an object pass a test implemented by a predicate function.
Test whether at least one property in an object passes a test implemented by a predicate function.
Generate a thunk.
Perform a single-pass map-reduce operation against each element in an array while iterating from right to left and return the accumulated result.
Return an array of an object's inherited enumerable property names.
Return an array of an object's own enumerable symbol properties.
While a test condition is true, invoke a function for each element in a collection.
Return a property descriptor for an object's inherited property.
Return an array of an object's inherited enumerable and non-enumerable property names.
Return an array of an object's own enumerable property names which are not integer indices.