ES7

97 阅读1分钟
  • Array.prototype.includes

let a = [1,2,3,4,5];console.log(a.includes(1));//true

  • 求幂运算符

Math.pow(4,2)===4**2;//true 疏远函数中的中缀形式