Function isPlainObject

  • Checks whether a given value is a plain object, where a plain object is an object that was NOT derived from a Super Class, ie, it is:

    • an object literal { name: "A" }
    • created with new Object({ name: "B" })
    • created with Object.create({ name: "C" })

    A plain object is NOT:

    • new Date()
    • new Person({ name: "D" })

    Returns

    Returns a boolean indicating whether the value is a plain object

    Parameters

    • value: any

    Returns boolean

Generated using TypeDoc