keys.js 202 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 exports = module.exports = typeof Object.keys === 'function' ? Object.keys : shim; exports.shim = shim; function shim (obj) { var keys = []; for (var key in obj) keys.push(key); return keys; }