Fork me on GitHub
#clojurescript
<
2022-04-09
>
pinkfrog13:04:45

How would you see all the properties of a js object?

p-himik14:04:16

js/Object.keys. I'd recommend checking out all the API of the most common built-in JS types. Or, if by "see" you mean literal visual inspection, then just js/console.log, assuming you have something akin to a browser's JS console.

👍 1
Carlo10:04:53

do you have a reference you recommend for this @U2FRKM4TW?

p-himik10:04:39

MDN, 100%: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects You don't have to know everything by heart, but you should be aware of what exists.

🙌 2
🍻 2