Last active
October 28, 2019 06:40
-
-
Save rubnet/e9ab06f9e4ffc48dac1daf7455c125e1 to your computer and use it in GitHub Desktop.
sum column all number
This file contains 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
str=``; | |
a=0; | |
str.trim().split('\n').forEach(e=>a+=Number(e.trim().split(/\s+/)[5].slice(0,-1))); | |
console.log(a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment