@svta/common-media-library
Version:
A common library for media playback in JavaScript
19 lines • 467 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValid = isValid;
/**
* Checks if the given value is valid
*
* @param value - The value to check.
*
* @returns `true` if the key is a value is valid.
*
* @internal
*/
function isValid(value) {
if (typeof value === 'number') {
return Number.isFinite(value);
}
return value != null && value !== '' && value !== false;
}
//# sourceMappingURL=isValid.js.map