MCQs > IT & Programming > JavaScript > Which will correctly check if an object is an array?

JavaScript MCQs

Which of the following will correctly check if an object is an array? (check all that apply)

Answer

Correct Answer: Object.prototype.toString.call(arr) === '[object Array]'

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it