Sha256: 982be0c56d0728e8b9860c332d8ed09f166bf07af8efd66dba23cc98a14d35e3

Contents?: true

Size: 344 Bytes

Versions: 19

Compression:

Stored size: 344 Bytes

Contents

import hasOwnProp from './has-own-prop';

var keys;

if (Object.keys) {
    keys = Object.keys;
} else {
    keys = function (obj) {
        var i,
            res = [];
        for (i in obj) {
            if (hasOwnProp(obj, i)) {
                res.push(i);
            }
        }
        return res;
    };
}

export { keys as default };

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.15.0 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.14.2 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.14.1 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.14.0 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.13.4 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.13.3 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.13.2 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.13.1 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.13.0 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.11.7 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.12.0 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.11.6 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.11.5 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.11.4 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.11.3 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.11.2 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.11.1 vendor/moment/src/lib/utils/keys.js
card-mod-date-0.11.0 vendor/moment/src/lib/utils/keys.js