forkeys
v1.0.1
Published
A wrapper around Object.keys(...).forEach(...)
Downloads
3
Readme
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).