Skip to content

Commit c966723

Browse files
committed
Array.prototype.slice.call -> .slice
1 parent 67d2f39 commit c966723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
}
140140
141141
// good
142-
itemsCopy = Array.prototype.slice.call(items);
142+
itemsCopy = items.slice();
143143
```
144144

145145
**[[⬆]](#TOC)**

0 commit comments

Comments
 (0)