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