SHARE
TWEET

Untitled

a guest Jun 12th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let s = (()=>{
  2.     let sum = (arr)=>arr.reduce((a,b)=> a+b);
  3.     let min = (arr) => Math.min(...arr);
  4.     let max = (arr) => Math.max(...arr);
  5.     let product = (arr) => arr.reduce((a,b)=> a*b);
  6.     let join = (arr)=> arr.join('');
  7.     return {sum,min,max,product,join}
  8.    
  9. })();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top