9 lines
378 B
JavaScript
9 lines
378 B
JavaScript
|
// all object keys, includes non-enumerable and symbols
|
||
|
var $ = require('./$')
|
||
|
, anObject = require('./$.an-object')
|
||
|
, Reflect = require('./$.global').Reflect;
|
||
|
module.exports = Reflect && Reflect.ownKeys || function ownKeys(it){
|
||
|
var keys = $.getNames(anObject(it))
|
||
|
, getSymbols = $.getSymbols;
|
||
|
return getSymbols ? keys.concat(getSymbols(it)) : keys;
|
||
|
};
|