JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39261857
  • Score
    100M100P100Q229765F
  • License MIT

An Object.keys replacement, in case Object.keys is not available. From https://github.com/kriskowal/es5-shim

Package Exports

  • object-keys

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object-keys) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#object-keys

Build Status

browser support

An Object.keys shim. Uses Object.keys if available.

Example

var keys = require('object-keys');
var assert = require('assert');
var obj = {
    a: true,
    b: true,
    c: true
};

assert.equal(keys(obj), ['a', 'b', 'c']);

Source

Implementation taken directly from https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js#L542-589

Tests

Tests currently use tape - which doesn't work in node 0.10, but works in browserify. Rest assured, they pass.