1.0.0 • Published 9 years ago

mastic-detect v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

mastic-detect

Collection of feature detection tests

How to use it

First, install mastic-detect as one of your dependencies :

npm i mastic-detect --save

and then you can import it in your project

import detect from 'mastic-detect';

if (detect.Promise) {
	// yay ! Promises are here ❤️
}

you can also import only the test you want

import { hasPromise } from 'mastic-detect';

if (hasPromise) {
	// yay ! Promises are here ❤️
}