1.0.0 • Published 9 years ago
mastic-detect v1.0.0
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 ❤️
}
1.0.0
9 years ago