Ad
Code
Diff
  • const av = number => number * ( 2 * (number >> 31) + 1);
    • let av = number => (number < 0) ? number * -1 : number;
    • const av = number => number * ( 2 * (number >> 31) + 1);
Code
Diff
  • findMax = a => a.reduce((x, y) => x > y ? x : y, -Infinity)
    • findMax = a => Math.max(...a)
    • findMax = a => a.reduce((x, y) => x > y ? x : y, -Infinity)
Code
Diff
  • returnhundred=()=>parseInt("⫹".charCodeAt(), 2) << 2
    • returnhundred=(_=!false+(!+[]+[]+![]).length)=>_*_
    • returnhundred=()=>parseInt("⫹".charCodeAt(), 2) << 2