$ npm install is-window
Checks if the given value is a window object.
$ npm install --save is-window
var isWindow = require('is-window');
isWindow(); // => false
isWindow(1); // => false
isWindow('1'); // => false
isWindow(true); // => false
isWindow(null); // => false
isWindow({}); // => false
isWindow(function () {}); // => false
isWindow([]); // => false
isWindow([1, 2, 3]); // => false
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.
© 2010 - cnpmjs.org x YWFE | Home | YWFE