diff options
Diffstat (limited to 'alarm/node_modules/graphql/jsutils/isObjectLike.js.flow')
-rw-r--r-- | alarm/node_modules/graphql/jsutils/isObjectLike.js.flow | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/alarm/node_modules/graphql/jsutils/isObjectLike.js.flow b/alarm/node_modules/graphql/jsutils/isObjectLike.js.flow new file mode 100644 index 0000000..86886ab --- /dev/null +++ b/alarm/node_modules/graphql/jsutils/isObjectLike.js.flow @@ -0,0 +1,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; +} |