Sha256: a2798dac5494df484c3e8d24c22758b64853f21e55b90a30b068ea33969559cc
Contents?: true
Size: 360 Bytes
Versions: 19
Compression:
Stored size: 360 Bytes
Contents
import hasOwnProp from './has-own-prop'; export default function isObjectEmpty(obj) { if (Object.getOwnPropertyNames) { return Object.getOwnPropertyNames(obj).length === 0; } else { var k; for (k in obj) { if (hasOwnProp(obj, k)) { return false; } } return true; } }
Version data entries
19 entries across 19 versions & 1 rubygems