ES7 and ES8 特性

ES7 特性:
1.Array.prototype.includes

let arr = ['react', 'angular', 'vue']

// Correct
if (arr.includes('react')) {
  console.log('Can use React')
}


2.Exponentiation Operator(求幂运算)

posted @ 2018-03-20 17:24  js初学者  阅读(157)  评论(0编辑  收藏  举报