1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

indexed produces an array.

This commit is contained in:
Rob Rix 2015-10-21 16:00:43 -04:00
parent 17877c7f36
commit 2bd26cd80c

View File

@ -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) {