isObject.d.ts 618 B

12345678910111213141516171819202122232425
  1. /**
  2. * Checks if `value` is the
  3. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  4. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  5. *
  6. * @since 0.1.0
  7. * @category Lang
  8. * @param {*} value The value to check.
  9. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  10. * @example
  11. *
  12. * isObject({})
  13. * // => true
  14. *
  15. * isObject([1, 2, 3])
  16. * // => true
  17. *
  18. * isObject(Function)
  19. * // => true
  20. *
  21. * isObject(null)
  22. * // => false
  23. */
  24. declare function isObject(value: any): boolean;
  25. export default isObject;