mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Style fix: use _.map instead of _.each
This commit is contained in:
@@ -100,12 +100,10 @@ exports.hasScheme = function (str) {
|
||||
exports.printPackageList = function (items, options) {
|
||||
options = options || {};
|
||||
|
||||
var rows = [];
|
||||
_.each(items, function (item) {
|
||||
var rows = _.map(items, function (item) {
|
||||
var name = item.name;
|
||||
var description = item.description || 'No description';
|
||||
var row = [ name, description];
|
||||
rows.push(row);
|
||||
return [name, description];
|
||||
});
|
||||
|
||||
var alphaSort = function (row) {
|
||||
|
||||
Reference in New Issue
Block a user