Function isPlainObject

Returns true if x is a plain object (shallow test), not null or array.