"use strict";

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;
}