securityos/node_modules/hashish/examples/map.js

8 lines
159 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +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);