frontend/.pnpm-store/v3/files/ac/e7bdf7fb4bc44193f4189faf36d0906614cd989647121ace5497fedad26c53dbb200116b85f5325a2972d1af53ea401f566bf829d88c5474ee0d0b202b5895

18 lines
491 B
Plaintext

"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);
};