From 9325413e67873c97a8a8f15fc227b995fad16e3b Mon Sep 17 00:00:00 2001 From: xhlwill Date: Mon, 12 Jun 2017 14:55:00 +0800 Subject: [PATCH] es7 > es7/es2016 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 现在官方按年份来,ES6/ES2015 因为之前有广泛的群众基础,ES7 还是叫的少 http://kangax.github.io/compat-table/es6/ --- docs/array.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/array.md b/docs/array.md index ad93b13..c530c7d 100644 --- a/docs/array.md +++ b/docs/array.md @@ -334,7 +334,7 @@ console.log(entries.next().value); // [2, 'c'] ## 数组实例的includes() -`Array.prototype.includes`方法返回一个布尔值,表示某个数组是否包含给定的值,与字符串的`includes`方法类似。该方法属于ES7,但Babel转码器已经支持。 +`Array.prototype.includes`方法返回一个布尔值,表示某个数组是否包含给定的值,与字符串的`includes`方法类似。该方法属于ES7/ES2016,但Babel转码器已经支持。 ```javascript [1, 2, 3].includes(2); // true