How can I check if a value is of type Map in JavaScript?

前端 未结 0 861
余生分开走
余生分开走 2020-11-21 05:06

I have a variable that could be an Object, a Map, or neither. I can easily check for objects with typeof, but I need to conditionally Map.map() the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题