bridebook-ui-library
Version:
Bridebook UI Library
21 lines (18 loc) • 437 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var inputValueUtil = exports.inputValueUtil = function inputValueUtil(input) {
var type = '';
if (input instanceof HTMLInputElement) {
type = input.getAttribute('type');
}
switch (type) {
case 'checkbox':
case 'radio':
return input.checked;
default:
return input.value;
}
};
//# sourceMappingURL=inputValueUtil.js.map