Ad
Code
Diff
  • const isEven = n => {
      if (n != parseInt(n)) return undefined;
      return n % 2 ? false : true;
    };
    • isEven = number => number %2 === 0 ?
    • true: number %1 === 0 ?
    • false : undefined;
    • const isEven = n => {
    • if (n != parseInt(n)) return undefined;
    • return n % 2 ? false : true;
    • };