developer-utils

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.

Classes

Type

Members

(static, constant) Types

Description:
  • Alias for the Type class.
Source:
Alias for the Type class.

(static, constant) array2range

Description:
  • Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].
Source:
See:
Converts a sorted array of numbers into a list of ranges. Consecutive numbers are grouped into a single range [min, max]. Isolated numbers are represented as [num, num].

(static, constant) binarySearchArr

Description:
  • Performs a binary search for an exact element in a sorted array.
Source:
See:
Performs a binary search for an exact element in a sorted array.

(static, constant) binarySearchGE

Description:
  • Performs a binary search for the smallest element greater than or equal to the target.
Source:
See:
Performs a binary search for the smallest element greater than or equal to the target.

(static, constant) binarySearchLE

Description:
  • Performs a binary search for the largest element less than or equal to the target.
Source:
See:
Performs a binary search for the largest element less than or equal to the target.

(static, constant) binarySearchRangeIncl

Description:
  • Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.
Source:
See:
Performs a binary search for a range of elements inclusive of the target. Uses binarySearchGE and binarySearchLE.

(static, constant) consumeIteratorNonBlocking

Description:
  • Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.
Source:
See:
Consume iterator values asynchronously utilizing macro-task queue to prevent Event Loop blocking.

(static, constant) is

Description:
  • Checks if a value matches an expected type.
Source:
See:
  • Type.is
Checks if a value matches an expected type.

(static, constant) measurePerformance

Description:
  • Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.
Source:
See:
Measures the execution time of a given function by running it multiple times. Useful for micro-benchmarking and performance comparison.

(static, constant) memoize

Description:
  • Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.
Source:
See:
Creates a memoized version of a function. Uses a tree structure to store results based on arguments. Compares arguments by reference.

(static, constant) naturalSearch

Description:
  • Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.
Source:
See:
Natural Search Algorithm by gkucmierz Mathematically finds the exponential boundary and binary searches bounds for a conditional function. Useful for finding bounds in sigmoidal functions without known boundaries.

(static, constant) of

Description:
  • Returns the canonical runtime type of any value.
Source:
See:
  • Type.of
Returns the canonical runtime type of any value.

(static, constant) randNormal

Description:
  • Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.
Source:
See:
Generates a random number from a normal (Gaussian) distribution. Uses the Box-Muller transform.

(static, constant) range2array

Description:
  • Converts a list of ranges into a flat array of numbers.
Source:
See:
Converts a list of ranges into a flat array of numbers.

(static, constant) same

Description:
  • Compares whether two values have the exact same canonical type.
Source:
See:
  • Type.same
Compares whether two values have the exact same canonical type.

(static, constant) setSafeInterval

Description:
  • A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.
Source:
See:
A safe alternative to setInterval that uses recursive setTimeout. It waits for the callback (even if it's async) to finish before scheduling the next tick, preventing overlapping executions and event loop blocking.