Created
March 18, 2024 01:27
-
-
Save joeattardi/dadbc282c8cb7694779e705a20bc9cef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function getLinesArray(file) { | |
| return new Promise((resolve) => { | |
| const readLines = file.readLines(); | |
| const lines = []; | |
| readLines.on('line', input => lineValues.push()); | |
| readLines.on('close', () => resolve(lines)); | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment