1.0.1 • Published 8 years ago

forkeys v1.0.1

Weekly downloads
2
License
Unlicense
Repository
github
Last release
8 years ago

forkeys

A wrapper around Object.keys(...).forEach(...).

Example

You can see an example here.

const forkeys = require('../index.js');

(() => {
    "use strict";

    let obj = {
        firstKey: 0,
        secondKey: "bla",
        final_key: "last one"
    };

    forkeys(obj, (key) => {
        console.log(`forkeys: key: ${key}, val: ${obj[key]}`);
    });
})();

License

Created by jameskmonger, licensed under The Unlicense (see LICENSE).

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago