object-keys-x
An ES6 Object.keys shim.
Last updated 7 years ago by xotic750 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install object-keys-x 
SYNC missed versions from official npm registry.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

object-keys-x

An ES6 Object.keys shim.

module.exportsArray

This method returns an array of a given object's own enumerable properties, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).

Kind: Exported member
Returns: Array - An array of strings that represent all the enumerable properties of the given object.

Param Type Description
obj * The object of which the enumerable own properties are to be returned.

Example

import objectKeys from 'object-keys-x';

const obj = {
  arr: [],
  bool: true,
  null: null,
  num: 42,
  obj: {},
  str: 'boz',
  undefined: void 0,
};

console.log(objectKeys(obj)); // ['arr', 'bool', 'null', 'num', 'obj', 'str', 'undefined']

Current Tags

  • 3.1.2                                ...           latest (7 years ago)

34 Versions

  • 3.1.2                                ...           7 years ago
  • 3.1.1                                ...           7 years ago
  • 3.1.0                                ...           7 years ago
  • 3.0.20                                ...           7 years ago
  • 3.0.19                                ...           7 years ago
  • 3.0.18                                ...           7 years ago
  • 3.0.17                                ...           7 years ago
  • 3.0.16                                ...           7 years ago
  • 3.0.15                                ...           7 years ago
  • 3.0.14                                ...           7 years ago
  • 3.0.13                                ...           7 years ago
  • 3.0.12                                ...           7 years ago
  • 3.0.11                                ...           7 years ago
  • 3.0.10                                ...           7 years ago
  • 3.0.9                                ...           7 years ago
  • 3.0.8                                ...           7 years ago
  • 3.0.7                                ...           7 years ago
  • 3.0.6                                ...           7 years ago
  • 3.0.5                                ...           7 years ago
  • 3.0.4                                ...           7 years ago
  • 3.0.3                                ...           7 years ago
  • 3.0.2                                ...           7 years ago
  • 3.0.1                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 2.5.0                                ...           9 years ago
  • 2.4.0                                ...           9 years ago
  • 2.3.0                                ...           9 years ago
  • 2.2.0                                ...           9 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.3.0                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 13
Dependencies (10)

Copyright 2013 - present © cnpmjs.org | Home |