(values, valueof)
| 78 | } |
| 79 | |
| 80 | function* 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 | |
| 97 | const ascendingBisect = bisector(ascending$3); |
| 98 | const bisectRight = ascendingBisect.right; |