isBothNaN.ts 235 B

123456789101112
  1. /**
  2. * Determine whether both values are NaN
  3. * @param {*} a
  4. * @param {*} b
  5. * @returns {Boolean}
  6. */
  7. const isBothNaN = (a: any, b: any) => {
  8. const { isNaN } = Number;
  9. return isNaN(a) && isNaN(b);
  10. };
  11. export default isBothNaN;