@nathanfaucett/object-map

object map for the browser and node.js

Usage no npm install needed!

<script type="module">
  import nathanfaucettObjectMap from 'https://cdn.skypack.dev/@nathanfaucett/object-map';
</script>

README

object-map

object map for the browser and node.js

var objectMap = require("@nathanfaucett/object-map");


objectMap({
        a: "a",
        b: "b",
        c: "c"
    },
    function(value, key, object) {
        return value + key;
    }
); === {
    a: "aa",
    b: "bb",
    c: "cc"
};