'use strict';

module.exports = isJsObject;

function isJsObject(obj) {
  return /^\[object (?:object|global)\]$/i
    .test(Object.prototype.toString.call(obj));
}

'use strict';

module.exports = isJsObject;

function isJsObject(obj) {
  return /^\[object (?:object|global|window)\]$/i
    .test(Object.prototype.toString.call(obj));
}

Make it work in Firefox
Make it work in Firefox

Firefox returns `[object Window]` if object is window