object-apply

1.0.1 • Public • Published

object-apply

NPM version build status Test coverage

Map a transformation to every value in an object.

Installation

$ npm i --save object-apply

Overview

var apply = require('object-apply');
 
var target = {
  foo: 1,
  bar: 2
};
 
// apply transformation to object
 
apply(target, function(arg) {
  return arg * arg;
});
// => {foo: 1, bar: 4}

License

MIT © Yoshua Wuyts

Readme

Keywords

Package Sidebar

Install

npm i object-apply

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • yoshuawuyts