Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Amal Shehu amalshehu

🎯
Focusing
View GitHub Profile
@amalshehu
amalshehu / gemHunt.js
Created May 28, 2017
Find total assets
View gemHunt.js
//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)
You can’t perform that action at this time.