List Object's built-in Properties

前端 未结 5 2037
小蘑菇
小蘑菇 2021-02-06 11:52

Is there a way for me to loop over a Javascript Object\'s built-in properties?

for...in gets me close to where I want to go, but \"A for...in loop does not iterate over

5条回答
  •  离开以前
    2021-02-06 12:44

    No you can't list object's built in properties. But you can refer to the implementer's reference. For example, to know all the methods and properties of Math object implemented on firefox, you'll use Firefox's Javascript Math Reference: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math

提交回复
热议问题