const valueOrDefault = (value, d) => value || d; // valueOrDefault(NaN, 30) -> 30