stdlib-js

stdlib-js/array-base-with

Return a new array after replacing an index with a given value.

JavaScript
1
0
Apache License 2.0

This package provides a utility function to create a new array with a specific element replaced, supporting both positive and negative indices. It includes an optimized in-place variant (`assign`) for performance-critical applications. The project is part of the stdlib standard library

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of stdlib-js/array-base-with

Account's avatar
Convert an array-like object to an object likely to have the same "shape".
Account's avatar
Test if an input value is a supported array boolean data type.
Account's avatar
Test if an input value is a supported array complex-valued floating-point data type.
Account's avatar
Return an accessor function for setting an element in an array-like object.
Account's avatar
Return a shallow copy of a portion of an array.
Account's avatar
Test if a value is a complex number-like object.
Account's avatar
Boolean constructor.
Account's avatar
Return the imaginary component of a double-precision complex floating-point number.
Account's avatar
Return the real component of a double-precision complex floating-point number.
Account's avatar
Normalize an index to the interval [0,max].
Account's avatar
Reinterpret a BooleanArray as a Uint8Array.
Account's avatar
Reinterpret a complex-valued floating-point array as a real-valued floating-point array having the same precision.
Account's avatar
Insert supplied variable values into a format string.
Account's avatar
stdlib TypeScript type declarations.
Account's avatar
Define a non-enumerable read-only property.
Account's avatar
Format an error message for production.
Account's avatar
Create a minimal array-like object supporting the accessor protocol from another array-like object.
Account's avatar
Create a generic array filled with ones.
Account's avatar
Create a zero-filled generic array.
Account's avatar
Create a zero-filled array having a specified length.
Account's avatar
Test if an object has a specified property.
Account's avatar
Test if a value is an array.
Account's avatar
Test if a value is a Complex128Array.
Account's avatar
Test if two arguments are both BooleanArrays and have equal values.
Account's avatar
Test if a value is a Float64Array.
Account's avatar
Test if a value is an Int32Array.
Account's avatar
Test if an object has a specified method name.
Account's avatar
Test if two arguments are both Complex128Arrays and have the same values.
Account's avatar
128-bit complex number.
Account's avatar
Exponential function.
Account's avatar
Create an array containing pseudorandom numbers drawn from a discrete uniform distribution.
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale
Account's avatar
Minimal TAP output formatter.
Account's avatar
Benchmark harness.

Support the repos that depend on stdlib-js/array-base-with

Top contributors

stdlib-bot's profile
stdlib-bot
23 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet