react-period-of-stay-input
Version:
React.js component for entering a period of stay in a hotel: check-in + check-out date
14 lines (13 loc) • 397 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function default_1() {
if (!document) {
return false;
}
var input = document.createElement('input');
input.setAttribute('type', 'date');
var notADateValue = 'not-a-date';
input.setAttribute('value', notADateValue);
return input.value !== notADateValue;
}
exports.default = default_1;