mirror of
https://github.com/github/semantic.git
synced 2024-12-26 16:33:03 +03:00
indexed
produces an array.
This commit is contained in:
parent
17877c7f36
commit
2bd26cd80c
@ -85,9 +85,11 @@
|
||||
}
|
||||
|
||||
function indexed(array, a, b, continuation) {
|
||||
var out = [];
|
||||
for (index in array) {
|
||||
continuation(array[index], a, b);
|
||||
out.push(continuation(array[index], a, b));
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
function keyed(object, a, b, continuation) {
|
||||
|
Loading…
Reference in New Issue
Block a user