Skip to content

Instantly share code, notes, and snippets.

View amalshehu's full-sized avatar
🍄
Living life

Amal Shehu amalshehu

🍄
Living life
View GitHub Profile
@amalshehu
amalshehu / gemHunt.js
Created May 28, 2017 08:49
Find total assets
//Assets calculator
let people = [{
"id": 1, // Person Id
"name": "Amal Shehu", // Name of person
"date": "2017-5-27", // Date
"totalAssets": 500, // Sum of total (gems collected)
"gems": [{ // Gems collected from forest
"total": 500, // totalCollected * value
"value": 100, // Value of one gem (Ruby = 100)