Check if a value is an object in JavaScript

后端 未结 30 3367
臣服心动
臣服心动 2020-11-22 05:06

How do you check if a value is an object in JavaScript?

30条回答
  •  孤独总比滥情好
    2020-11-22 06:03

    lodash has isPlainObject, which might be what many who come to this page are looking for. It returns false when give a function or array.

提交回复
热议问题