Bug 849009 - Uplift Add-on SDK changeset 645b0ca71ccd41bb1fc69d97d22c456b03452e89

This commit is contained in:
Wes Kocher
2013-03-07 15:09:34 -08:00
parent 0fe59ae286
commit cba4c2a7c8
75 changed files with 1154 additions and 687 deletions

View File

@@ -87,3 +87,11 @@ exports.flatten = function flatten(array){
}
return flat;
};
function fromIterator(iterator) {
let array = [];
for each (let item in iterator)
array.push(item);
return array;
}
exports.fromIterator = fromIterator;