1.0.0 • Published 6 years ago
@bemoje/is-window v1.0.0
@bemoje/is-window
Determine if a value is a window-object.
Version
Travis CI
Dependencies
Stats
Donate
Installation
npm install @bemoje/is-window
npm install --save @bemoje/is-window
npm install --save-dev @bemoje/is-windowUsage
import isWindow from '@bemoje/is-window'
// fake window object
const window = {}
window.window = window
isWindow(window)
//=> trueTests
Uses Jest to test module functionality. Run tests to get coverage details.
npm run testAPI
Table of Contents
isWindow
Determine if a value is a window-object.
Parameters
- valueany The value
Returns boolean
1.0.0
6 years ago