Skip to content

ES7

includes

判断数组中存在某元素 arr = [1, 2,3]

arr.indexOf(4)>=0 arr.includes(4);

** 指数运算

Math.pow(2,3) 2**3