(obj, fn)
| 32 | |
| 33 | /* Traverse an object without including its properties on the prototype chain */ |
| 34 | export function forIn(obj, fn) { |
| 35 | fn = fn || function () {}; |
| 36 | for (var key in obj) { |
| 37 | if (Object.hasOwnProperty.call(obj, key)) { |
| 38 | fn(key, obj[key]); |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | /* Get the key value of the object. ES6+ applications can use Object.keys() instead */ |
| 44 | export function getObjKeys(obj) { |
no test coverage detected