isObjectLike.js 339 B

1234567891011121314
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true,
  4. });
  5. exports.isObjectLike = isObjectLike;
  6. /**
  7. * Return true if `value` is object-like. A value is object-like if it's not
  8. * `null` and has a `typeof` result of "object".
  9. */
  10. function isObjectLike(value) {
  11. return typeof value == 'object' && value !== null;
  12. }