No Description

isObject.js 161B

12345
  1. // Is a given variable an object?
  2. export default function isObject(obj) {
  3. var type = typeof obj;
  4. return type === 'function' || type === 'object' && !!obj;
  5. }