getOwnKeys
Return the list of keys on an object, whether or not they can be iterated over
getOwnKeys(obj)
Return the Array of all String (not Symbol) keys from obj, whether they are enumerable or not. If
@@can.getOwnKeys exists on obj, it is called to return
the keys; otherwise, Object.getOwnPropertyNames() is used.
var foo = new DefineMap({ bar: "baz", [canSymbol.for("quux")]: "thud" });
Object.defineProperty(foo, "jeek", {
enumerable: false,
value: "plonk"
});
canReflect.getOwnKeys(foo); // -> ["bar", "jeek"]
Parameters
- obj
{Object}:Any MapLike object
Returns
{Array}:
the Array of all String keys from the object.