summaryrefslogtreecommitdiff
path: root/includes/external/school/node_modules/graphql/jsutils/isObjectLike.js.flow
blob: 86886ab296ada6edd8c9aba2f0a7cead10a03569 (plain)
1
2
3
4
5
6
7
8
// @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;
}