isarray
Check whether a JavaScript value is an array.
juliangruber · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Try the same check on a short list and an object that resembles a list.
What we tested
2.0.5. Try the same check on a short list and an object that resembles a list. Recognized a real list and rejected an array-like object.