Socket
Book a DemoInstallSign in
Socket

object-apply

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-apply

Map a transformation to every value in an object

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

object

FAQs

Package last updated on 27 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts