We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85f498b commit 57ca7b5Copy full SHA for 57ca7b5
JavaScript/5-index.js
@@ -3,8 +3,7 @@
3
const fs = require('fs');
4
5
const getDataset = file => {
6
- const lines = fs.readFileSync(file, 'utf8')
7
- .toString().split('\n');
+ const lines = fs.readFileSync(file, 'utf8').split('\n');
8
lines.shift();
9
lines.pop();
10
return lines.map(line => line.split(','));
0 commit comments