Skip to content

Instantly share code, notes, and snippets.

var fs = require("fs");
var file = "file.txt",
sum = 0,
chars = [];
/// @summary: aggregate values
function aggregater(value) {
if (parseInt(value, 10).toString() === value.toString()) {
sum += parseInt(value, 10);
return;