Skip to content

Commit 52615bd

Browse files
committed
Update README.md
1 parent 5b9daa2 commit 52615bd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8067,13 +8067,11 @@ c.retrieve(); // => The counter is currently at: 14
80678067

80688068
```js
80698069
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
8070-
80718070
let lenth = 3;
80728071

80738072
function split(len) {
80748073
while (arr.length > 0) {
8075-
let temp = arr.splice(0, len);
8076-
console.log(temp);
8074+
console.log(arr.splice(0, len));
80778075
}
80788076
}
80798077
split(lenth);

0 commit comments

Comments
 (0)