Skip to content

Instantly share code, notes, and snippets.

@markasoftware
Created January 12, 2020 01:29
Show Gist options
  • Save markasoftware/2d64c4cf7b948b5e7a054b3e417670f9 to your computer and use it in GitHub Desktop.
Save markasoftware/2d64c4cf7b948b5e7a054b3e417670f9 to your computer and use it in GitHub Desktop.
json = JSON.parse(require('fs').readFileSync('/tmp/memes', 'utf8');
filter = json.filter(c=>c.points>60000);
min = json.sort((a,b)=>a-b)[0].points;
sum = json.reduce((a,b)=>a+b.points, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment