index.d.ts 345 B

1234567891011121314151617181920212223
  1. /**
  2. Check if a value is an object.
  3. Keep in mind that array, function, regexp, etc, are objects in JavaScript.
  4. @example
  5. ```
  6. import isObject = require('is-obj');
  7. isObject({foo: 'bar'});
  8. //=> true
  9. isObject([1, 2, 3]);
  10. //=> true
  11. isObject('foo');
  12. //=> false
  13. ```
  14. */
  15. declare function isObject(value: unknown): value is object;
  16. export = isObject;