If so, how can I detect the difference between them.
I've noticed that you can't do typeof
Array hence I'm looking for different solution to see the difference.
If so, how can I detect the difference between them.
I've noticed that you can't do typeof
Array hence I'm looking for different solution to see the difference.
You can detect if a variable is an array by using Array.isArray(yourArray)
.