isObjectLike.js 289 B

123456789101112
  1. /**
  2. * Checks if `value` is object-like.
  3. *
  4. * @private
  5. * @param {*} value The value to check.
  6. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  7. */
  8. function isObjectLike(value) {
  9. return !!value && typeof value == 'object';
  10. }
  11. module.exports = isObjectLike;