Skip to content

Instantly share code, notes, and snippets.

@arunstan
arunstan / doesSupportInputType.js
Last active July 7, 2016 20:41
A function to check whether an HTML5 input type is supported based on the corresponding Modernizr code
// doesSupportInputType.js
//
// A function to check whether an HTML5 input type is supported based on the corresponding Modernizr code
//
// Original code https://github.com/Modernizr/Modernizr/blob/master/feature-detects/inputtypes.js
//
// Usage
//
// doesSupportInputType('date')
// ==> true | false