Validates whether a value is a plain JavaScript object.