Answers for "how to check if an object is map in javascript"

1

how to check if an object is map in javascript

var foo = new Set;
foo instanceof Set; // True!
foo instanceof Map; // False!
Posted by: Guest on November-19-2020

Code answers related to "how to check if an object is map in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language