Skip to content

Instantly share code, notes, and snippets.

@arunstan
arunstan / doesSupportInputType.js
Last active Jul 7, 2016
A function to check whether an HTML5 input type is supported based on the corresponding Modernizr code
View doesSupportInputType.js
// 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