回答編集履歴
4
ArrayLikeコードのサンプル追加
test
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
- [Array.prototype.push.apply - JSFiddle](https://jsfiddle.net/zoyth6Lv/)
|
14
|
+
|
15
|
+
- [Array.prototype.push.apply (ArrayLike) - JSFiddle](https://jsfiddle.net/zoyth6Lv/3/)
|
14
16
|
|
15
17
|
- [22.1.3.18 Array.prototype.push - ECMAScript® 2016 Language Specification](http://www.ecma-international.org/ecma-262/7.0/#sec-array.prototype.push)
|
16
18
|
|
3
Array\.prototype\.indexOf, String\.prototype\.indexOf 見出し修正
test
CHANGED
@@ -16,9 +16,7 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
### indexOf
|
19
|
+
### Array.prototype.indexOf, String.prototype.indexOf
|
20
|
-
|
21
|
-
|
22
20
|
|
23
21
|
|
24
22
|
|
2
ES7リンク追加
test
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
- [Array.prototype.push.apply - JSFiddle](https://jsfiddle.net/zoyth6Lv/)
|
14
|
+
|
15
|
+
- [22.1.3.18 Array.prototype.push - ECMAScript® 2016 Language Specification](http://www.ecma-international.org/ecma-262/7.0/#sec-array.prototype.push)
|
14
16
|
|
15
17
|
|
16
18
|
|
@@ -38,6 +40,8 @@
|
|
38
40
|
|
39
41
|
- [Array.prototype.indexOf - ECMAScript 5 compatibility table](http://kangax.github.io/compat-table/es5/#test-Array_methods_Array.prototype.indexOf)
|
40
42
|
|
43
|
+
- [22.1.3.12 Array.prototype.indexOf - ECMAScript® 2016 Language Specification](http://www.ecma-international.org/ecma-262/7.0/#sec-array.prototype.indexof)
|
44
|
+
|
41
45
|
|
42
46
|
|
43
47
|
Re: yuri_aj さん
|
1
Array\.prototype\.indexOf は IE9\+ で使用できる
test
CHANGED
@@ -14,7 +14,9 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
### indexOf
|
17
|
+
### indexOf が IE で動かない
|
18
|
+
|
19
|
+
|
18
20
|
|
19
21
|
|
20
22
|
|
@@ -28,4 +30,14 @@
|
|
28
30
|
|
29
31
|
|
30
32
|
|
33
|
+
`String.prototype.indexOf` は ES3 当時から古いAPIなので IE で使えないという事はないはずです。
|
34
|
+
|
35
|
+
`Array.prototype.indexOf` は IE9+ で使用できます。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
- [Array.prototype.indexOf - ECMAScript 5 compatibility table](http://kangax.github.io/compat-table/es5/#test-Array_methods_Array.prototype.indexOf)
|
40
|
+
|
41
|
+
|
42
|
+
|
31
43
|
Re: yuri_aj さん
|