Created
December 23, 2018 01:27
-
-
Save MDIB/9132a415aa2f60a219380252fc1b1035 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
JSON.stringify($.map($('.expense .summary .involved'), | |
(e) => { | |
var negative = $(e).find('.you > .negative').text() | |
var positive = $(e).find('.you > .positive').text() | |
var date = $(e).find('.date').prop('title') | |
var isPositive = (negative == "") | |
var final = isPositive?positive:negative | |
var desc = $(e).find('.description').text() | |
return {amount: final, | |
desc: desc.trim(), | |
date: date} | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.