How to get autocompletion data in chrome developer console by javascript? -
hello.
i want of auto-completion data above picture javascript.
for example,
console.log(data) // data auto-completion data ["a[0]", "__definegetter__", "__definesetter__", ...] // result of above command
any ideas autocompletion data?
thank you.
you want properties (even non enumerated) of object present prototype chain (e.g. using __proto__
). e.g. :
a = new array(10); a[0] = 1; console.log(object.getownpropertynames(a).concat(object.getownpropertynames(a.__proto__)).concat(object.getownpropertynames(a.__proto__.__proto__)));
will print:
["0", "length", "length", "constructor", "tostring", "tolocalestring", "join", "pop", "push", "concat", "reverse", "shift", "unshift", "slice", "splice", "sort", "filter", "foreach", "some", "every", "map", "indexof", "lastindexof", "reduce", "reduceright", "entries", "keys", "copywithin", "find", "findindex", "fill", "constructor", "tostring", "tolocalestring", "valueof", "hasownproperty", "isprototypeof", "propertyisenumerable", "__definegetter__", "__lookupgetter__", "__definesetter__", "__lookupsetter__", "__proto__"]
Comments
Post a Comment