1
1
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:
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) { 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) {