MCPcopy Create free account
hub / github.com/d3/d3-shape / inDeltaArray

Function inDeltaArray

test/asserts.js:29–34  ·  view source on GitHub ↗
(actual, expected, delta)

Source from the content-addressed store, hash-verified

27}
28
29function inDeltaArray(actual, expected, delta) {
30 let n = expected.length, i = -1;
31 if (actual.length !== n) return false;
32 while (++i < n) if (!inDelta(actual[i], expected[i], delta)) return false;
33 return true;
34}
35
36function inDeltaObject(actual, expected, delta) {
37 for (let i in expected) if (!inDelta(actual[i], expected[i], delta)) return false;

Callers

nothing calls this directly

Calls 1

inDeltaFunction · 0.85

Tested by

no test coverage detected