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
//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) |