Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/modules / ___dist / chain-able / src / deps / is / browser.js
Size: Mime:
"use strict";

const isUndefinedLike = require("./undefinedLike");
/* istanbul ignore next: jest mess up */

/**
 * @desc check typeof window
 * @since 5.0.0-beta.1
 * @memberOf is
 * @return {boolean} is in browser, or has global window
 * @name isBrowser
 * @func
 * @extends isUndefinedLike
 * @see utils/localGlobal
 * @example isBrowser() //=> true | false
 */


module.exports = () => !isUndefinedLike(typeof window) && !isUndefinedLike(window.window);