stdlib-js

stdlib-js/array-base-index-of-same-...

Return the index of the first element which equals a provided search element according to the same value algorithm.

JavaScript
0
0
Apache License 2.0

This is a utility function for finding the index of an element in an array using the SameValue algorithm for equality comparison. It's designed for developers who need precise control over equality checks, particularly when dealing with edge cases like NaN values and distinguishing between -0 and +0. The function provides the same behavior as JavaScript's native indexOf but with stricter equality semantics.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of stdlib-js/array-base-index-of-same-value

Account's avatar
Test if a value is a BooleanArray.
Account's avatar
Test if a value is a complex typed array.
Account's avatar
Return an accessor function for retrieving an element from an array-like object.
Account's avatar
Test if a value is an array-like object supporting the accessor (get/set) protocol.
Account's avatar
Test if a value is a boolean.
Account's avatar
Test if a value is a complex number-like object.
Account's avatar
Test if two arguments are the same value.
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
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
stdlib TypeScript type declarations.
Account's avatar
Create a minimal array-like object supporting the accessor protocol from another array-like object.
Account's avatar
Generate a linearly spaced numeric array whose elements increment by 1 starting from zero.
Account's avatar
Test if a value is a number having an integer value.
Account's avatar
128-bit complex number.
Account's avatar
Exponential function.
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-index-of-same-value

Top contributors

stdlib-bot's profile
stdlib-bot
7 contributions

Recent events

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

No events yet