time-to-botec/js/node_modules/@stdlib/assert/is-mobile
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00
..
docs feat: add the node modules 2022-12-03 12:44:49 +00:00
lib feat: add the node modules 2022-12-03 12:44:49 +00:00
package.json feat: add the node modules 2022-12-03 12:44:49 +00:00
README.md feat: add the node modules 2022-12-03 12:44:49 +00:00

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>