@zohodesk/client_build_tool
Version:
A CLI tool to build web applications and client libraries
14 lines (11 loc) • 327 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isValid = isValid;
function isValid(correspondingValue, specificSchema) {
if (typeof correspondingValue === 'number' && Number.isNaN(correspondingValue)) {
return specificSchema;
}
return correspondingValue ?? specificSchema;
}