b 5

Use Array.isArray() to check types.

console.log(Array.isArray([1, 2, 3])); // true

#JavaScript #TypeChecking #Tips #javascriptGroup

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top