JavaScript keys() function why is there no documentation

I've spent about 20 minutes trying to find more information on the keys function in javascript...

I initially found the keys() function referenced in this answer:

Length of a JavaScript object

hash = {"a" : "b", "c": "d"};
keys(hash); // ["a", "c"]

Does anyone have any more information on this function, especially browser support?


There's no such function, it's part of the console api

Description for chrome console: https://developer.chrome.com/devtools/docs/commandline-api#keysobject

For Firefox: https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Helpers

链接地址: http://www.djcxy.com/p/4688.html

上一篇: Javascript IN运营商兼容性

下一篇: JavaScript keys()函数为什么没有文档