isObjectLike.js.flow 276 B

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