MCPcopy Index your code
hub / github.com/nodejs/node / areSimilarFloatArrays

Function areSimilarFloatArrays

lib/internal/util/comparisons.js:184–195  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

182}
183
184function areSimilarFloatArrays(a, b) {
185 const len = getByteLength(a);
186 if (len !== getByteLength(b)) {
187 return false;
188 }
189 for (let offset = 0; offset < len; offset++) {
190 if (a[offset] !== b[offset]) {
191 return false;
192 }
193 }
194 return true;
195}
196
197function areSimilarTypedArrays(a, b) {
198 return a.byteLength === b.byteLength && compare(a, b) === 0;

Callers 1

objectComparisonStartFunction · 0.85

Calls 1

getByteLengthFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…