Bug 849009 - Uplift Add-on SDK changeset 645b0ca71ccd41bb1fc69d97d22c456b03452e89
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user