• Returns whether the given object is a plain object

    Parameters

    • object: any

      the object to check

    Returns boolean

    whether the given object is a plain object

    isPlain(undefined);    // false
    isPlain({foo: 'bar'}); // true