Sha256: 420bf9c0c31bfb0310c15a69123541ca173effe68f16b23d92beab1f837419cf
Contents?: true
Size: 349 Bytes
Versions: 19
Compression:
Stored size: 349 Bytes
Contents
import hasOwnProp from './has-own-prop'; export default function objectKeys(obj) { if (Object.keys) { return Object.keys(obj); } else { // IE8 var res = [], i; for (i in obj) { if (hasOwnProp(obj, i)) { res.push(i); } } return res; } }
Version data entries
19 entries across 19 versions & 1 rubygems