Giter Site home page Giter Site logo

stdlib-js / assert-is-touch-device Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 783 KB

Boolean indicating if the current environment is a touch device.

Home Page: https://github.com/stdlib-js/stdlib

License: Apache License 2.0

JavaScript 41.49% Makefile 58.51%
nodejs javascript stdlib node node-js assertion assert utilities utility utils util runtime environment browser touchscreen touch tablet phone

assert-is-touch-device's Introduction

IS_TOUCH_DEVICE

NPM version Build Status Coverage Status

Check if the current environment is a touch device.

Installation

npm install @stdlib/assert-is-touch-device

Alternatively,

The branches.md file summarizes the available branches and displays a diagram illustrating their relationships.

Usage

var IS_TOUCH_DEVICE = require( '@stdlib/assert-is-touch-device' );

IS_TOUCH_DEVICE

Boolean indicating if the current environment is a touch device.

var bool = IS_TOUCH_DEVICE;
// returns <boolean>

Examples

var IS_TOUCH_DEVICE = require( '@stdlib/assert-is-touch-device' );

console.log( IS_TOUCH_DEVICE );
// => <boolean>

Notice

This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.

For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.

Community

Chat


License

See LICENSE.

Copyright

Copyright © 2016-2023. The Stdlib Authors.

assert-is-touch-device's People

Contributors

stdlib-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.