Sha256: 7c6fda569d92678180f4c48b5398ee78b6ee20781f869269658a3550875cf935
Contents?: true
Size: 444 Bytes
Versions: 29
Compression:
Stored size: 444 Bytes
Contents
'use strict'; var uniq = require('../array/#/uniq') , value = require('./valid-value') , push = Array.prototype.push , getOwnPropertyNames = Object.getOwnPropertyNames , getPrototypeOf = Object.getPrototypeOf; module.exports = function (obj) { var keys; obj = Object(value(obj)); keys = getOwnPropertyNames(obj); while ((obj = getPrototypeOf(obj))) { push.apply(keys, getOwnPropertyNames(obj)); } return uniq.call(keys); };
Version data entries
29 entries across 19 versions & 7 rubygems