Object.keys
Object.getOwnPropertyNames
(inherited properties are not considered)
Object.keys(obj)
(again, inherited properties are not included)
var f = new Object(); f.l = 8; Object.prototype.s = 9; Object.defineProperty(Object.prototype, "constvar", { enumerable: false, value: 88 }); var g1 = Object.keys(Object); var gg1 = Object.getOwnPropertyNames(Object); //don't contain 'constvar' where is not enumerable but exist s property where is enumerable
SomeObject.GetType().BaseType
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)