MCPcopy Create free account
hub / github.com/breck7/scroll / numbers

Function numbers

external/.d3.js:80–95  ·  view source on GitHub ↗
(values, valueof)

Source from the content-addressed store, hash-verified

78}
79
80function* numbers(values, valueof) {
81 if (valueof === undefined) {
82 for (let value of values) {
83 if (value != null && (value = +value) >= value) {
84 yield value;
85 }
86 }
87 } else {
88 let index = -1;
89 for (let value of values) {
90 if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {
91 yield value;
92 }
93 }
94 }
95}
96
97const ascendingBisect = bisector(ascending$3);
98const bisectRight = ascendingBisect.right;

Callers 1

quantile$1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected