swimsuit
1.0.0 • Public • Published Swimsuit
Detect features using Promise
Usage
Add a test
import Swimsuit from 'swimsuit'
Swimsuit.supports('websockets', () => {
return typeof window !== 'undefined' && typeof window.WebSocket !== 'undefined'
})
Check new support
Swimsuit.websockets.then(() => {
}).catch(() => {
})
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.0
1
Version History
Package Sidebar
Install
Weekly Downloads