ES6系列学习(3)for of、for in、foreach、Object.keys、Object.values、Object.getOwnProperty、hasOwnProperty和in
1.新增的字符串函数startsWith()、endsWith()、includes()、repeat()2.对象解构3.数组解构constnumbers=['one','two','three','four','five'];const[one,...others]=numbers;others=['two','three','four','five'];//交换值[a,b]=[b,a]4.fo