all-property-names
Get all property names of an object including non-enumerable and inherited ones
Like Object.getOwnPropertyNames()
but traverses up the prototype-chain.
Install
$ npm install --save all-property-names
Usage
const allPropertyNames = ; Object;/*[ 'constructor', 'toString', 'valueOf']*/ ;/*Set { 'constructor', 'toString', 'valueOf', 'toLocaleString', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', '__defineGetter__', '__lookupGetter__', '__defineSetter__', '__lookupSetter__', '__proto__'}*/
API
allPropertyNames(input)
Returns a Set
.
input
Type: Object
License
MIT © Sindre Sorhus