Package Exports
- prop-assign
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prop-assign) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
prop-assign
Assign a value to a property in an Array iterator
$ npm install --save prop-assign
var propAssign = require('prop-assign');
var users = [
{ id: 1, name: 'Dave' },
{ id: 2, name: 'Stephen' }
];
users.map(propAssign('time', Date.now()));
// [
// { id: 1, name: 'Dave', time: [Date] },
// { id: 2, name: 'Stephen', time: [Date] },
// ]