MCPcopy Create free account
hub / github.com/d3/d3-array / numbers

Function numbers

src/number.js:5–20  ·  view source on GitHub ↗
(values, valueof)

Source from the content-addressed store, hash-verified

3}
4
5export function* numbers(values, valueof) {
6 if (valueof === undefined) {
7 for (let value of values) {
8 if (value != null && (value = +value) >= value) {
9 yield value;
10 }
11 }
12 } else {
13 let index = -1;
14 for (let value of values) {
15 if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {
16 yield value;
17 }
18 }
19 }
20}

Callers 1

quantileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…