function goodDateInput() {
  if (typeof window === 'undefined') {
    return true
  } else {
    const element = document.createElement('input')

    element.setAttribute('type', 'date')
    return element.type === 'date'
  }
}
/**
 * Return true if date type inputs are well supported on this platform
 * @return {boolean} true is date type inputs are well supported, false otherwise
 */
Return true if date type inputs are well supported on this platform
@return {boolean} true is date type inputs are well supported, false otherwise
Return true if date type inputs are well supported on this platform @return { boolean } true is date type inputs are well supported false otherwise
function goodDateInput() {
  if (typeof window === 'undefined') {
    return true
  } else {
    const element = document.createElement('input')
    element.setAttribute('type', 'date')
    return element.type === 'date'
  }
}
function goodDateInput ( ) { if ( typeof window === 'undefined' ) { return true } else { const element = document . createElement ( 'input' ) element . setAttribute ( 'type' , 'date' ) return element . type === 'date' } }
Return true if date type inputs are well supported on this platform
 @return {boolean} true is date type inputs are well supported, false otherwise
Return true if date type inputs are well supported on this platform @return { boolean } true is date type inputs are well supported false otherwise