0.2.0 • Published 11 years ago

mapr v0.2.0

Weekly downloads
1
License
-
Repository
-
Last release
11 years ago

mapr

Build status

Resolves a path in a object.

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();
    });
0.2.0

11 years ago

0.1.0

11 years ago