Skip to content

Commit 57ca7b5

Browse files
committed
Remove .toString()
1 parent 85f498b commit 57ca7b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

JavaScript/5-index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
const fs = require('fs');
44

55
const getDataset = file => {
6-
const lines = fs.readFileSync(file, 'utf8')
7-
.toString().split('\n');
6+
const lines = fs.readFileSync(file, 'utf8').split('\n');
87
lines.shift();
98
lines.pop();
109
return lines.map(line => line.split(','));

0 commit comments

Comments
 (0)