🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

mapr

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

mapr

map for objects

0.2.0
unpublished
latest
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

mapr

Build status

Map object values and keys

Installation

node.js

$ npm install mapr

component

$ component install manuelstofer/mapr

Usage

var mapr = require('mapr'),
    map = mapr.map,
    kmap = mapr.kmap,

    obj = {
       bla: 'hello'
    };

    // map object values
    // {bla: 'HELLO'}
    map(obj, function (value, key) {
        return value.toUpperCase();
    });

    // map object keys
    // {BLA: 'hello'}
    kmap(obj, function (key, value) {
        return key.toUpperCase();
    });

FAQs

Package last updated on 25 Mar 2013

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