@bemoje/is-window

1.0.0 • Public • Published

@bemoje/is-window

Determine if a value is a window-object.

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/is-window
npm install --save @bemoje/is-window
npm install --save-dev @bemoje/is-window

Usage

import isWindow from '@bemoje/is-window'

// fake window object
const window = {}
window.window = window

isWindow(window)
//=> true

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

Table of Contents

isWindow

Determine if a value is a window-object.

Parameters
  • value any The value

Returns boolean

Package Sidebar

Install

npm i @bemoje/is-window

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.79 kB

Total Files

5

Last publish

Collaborators

  • bemoje