mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +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) {
|
function indexed(array, a, b, continuation) {
|
||||||
|
var out = [];
|
||||||
for (index in array) {
|
for (index in array) {
|
||||||
continuation(array[index], a, b);
|
out.push(continuation(array[index], a, b));
|
||||||
}
|
}
|
||||||
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
function keyed(object, a, b, continuation) {
|
function keyed(object, a, b, continuation) {
|
||||||
|
Loading…
Reference in New Issue
Block a user