Skip to content

Commit 505aed0

Browse files
committed
fix(src): remove last item from array
1 parent 4c45638 commit 505aed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const test = (str = "", obj = {}) => console.log(`Log: ${str}`, object);
22
const otherTest = (num = 0) => num + 1000;
3-
const lastTest = (arr = []) => arr.slice(0, 1);
3+
const lastTest = (arr = []) => arr.slice(0, -1);
44

55
export default test;
66

0 commit comments

Comments
 (0)