File size: 172 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 |
export default function(callback, that) {
let index = -1;
for (const node of this) {
if (callback.call(that, node, ++index, this)) {
return node;
}
}
}
|
bc20498 |
1 2 3 4 5 6 7 8 9 |
export default function(callback, that) {
let index = -1;
for (const node of this) {
if (callback.call(that, node, ++index, this)) {
return node;
}
}
}
|