SHARE
TWEET

Untitled

a guest Jun 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // 配列(重複してるし、順番もバラバラ)
  2. var a = [5,2,3,1,3,2,2];
  3.  
  4. // 重複を削除し、並び替える
  5. var b = Array.from(new Set(a)).sort();
  6.  
  7. console.log(b);
RAW Paste Data
Top