DEV Community

Discussion on: How to check if Variable is an Array in JavaScript

Collapse
 
omenlog profile image
Omar E. Lopez

Hi Samantha, excellent post !! I didn't know about the Array gotchas between different frames, so thanks for share it. I think in the typeof table you can include Symbol and BigInt as examples also :)

Collapse
 
samanthaming profile image
Samantha Ming

Ya, that was an interesting discovery for me as well πŸ™‚ I was thinking about including Symbol and BigInt, but I thought I was introducing too much. But for completeness, that should absolutely be included πŸ˜†