Skip to content

d.isPlainObject()

d.isPlainObject( value )

判断值是普通对象。

d.isPlainObject( value ) from @1.0

  • value
    • 类型: Anything
    • 描述: 任意类型的参数
js
d.isPlainObject({ x: 0, y: 0 }) // => true
d.isPlainObject(Object.create(null)) // => true
d.isPlainObject(new Object()) // =>  true

基于 MIT 许可发布