Sha256: 37708bcc248b794d06e4a5ee554cbe78560274a51cc8cc577f51f7911dcbd321

Contents?: true

Size: 323 Bytes

Versions: 34

Compression:

Stored size: 323 Bytes

Contents

export default function isObjectEmpty(obj) {
    if (Object.getOwnPropertyNames) {
        return (Object.getOwnPropertyNames(obj).length === 0);
    } else {
        var k;
        for (k in obj) {
            if (obj.hasOwnProperty(k)) {
                return false;
            }
        }
        return true;
    }
}

Version data entries

34 entries across 34 versions & 5 rubygems

Version Path
card-1.100.0 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.99.6 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.99.5 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.99.4 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.99.3 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.99.2 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
ilog-0.4.1 node_modules/moment/src/lib/utils/is-object-empty.js
ilog-0.4.0 node_modules/moment/src/lib/utils/is-object-empty.js
ilog-0.3.3 node_modules/moment/src/lib/utils/is-object-empty.js
card-1.99.1 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.99.0 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
jester-data-8.0.0 node_modules/moment/src/lib/utils/is-object-empty.js
ezii-os-5.2.1 node_modules/moment/src/lib/utils/is-object-empty.js
ezii-os-2.0.1 node_modules/moment/src/lib/utils/is-object-empty.js
card-1.98.3 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.98.2 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.98.1 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.98.0 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.97.0.1 mod/date/vendor/moment/src/lib/utils/is-object-empty.js
card-1.97.0 mod/date/vendor/moment/src/lib/utils/is-object-empty.js