This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/graphql/jsutils/isObjectLike.js.flow

9 lines
275 B
Plaintext

// @flow strict
/**
* Return true if `value` is object-like. A value is object-like if it's not
* `null` and has a `typeof` result of "object".
*/
export default function isObjectLike(value: mixed): boolean %checks {
return typeof value == 'object' && value !== null;
}