Function asPlainObject

Returns x if x is a plain object, otherwise returns {} (empty object).