my-idlers/node_modules/collect.js/dist/methods/mapInto.js

7 lines
150 B
JavaScript
Raw Normal View History

'use strict';
module.exports = function mapInto(ClassName) {
return this.map(function (value, key) {
return new ClassName(value, key);
});
};