|
||
---|---|---|
.. | ||
docs | ||
lib | ||
package.json | ||
README.md |
IS_MOBILE
Check if the current environment is a mobile device.
Usage
var IS_MOBILE = require( '@stdlib/assert/is-mobile' );
IS_MOBILE
Boolean
indicating if the current environment is a mobile device.
var bool = IS_MOBILE;
// returns <boolean>
Notes
- In order to determine whether the current environment is a mobile device, the implementation checks whether the User Agent contains the string "Mobi" per the MDN recommendations.
Examples
var IS_MOBILE = require( '@stdlib/assert/is-mobile' );
console.log( IS_MOBILE );
// => <boolean>