chainy/node_modules/hashish/examples/map.js

8 lines
159 B
JavaScript
Raw Normal View History

2020-01-26 19:03:32 +00:00
var Hash = require('hashish');
var obj = { a : 1, b : 2, c : 3, d : 4 };
var mapped = Hash.map(obj, function (x) {
return x * 10
});
console.dir(mapped);