Last active
December 5, 2017 21:36
-
-
Save rmoskal/e903d9d9039c384fa5c8b2f27d71f3a5 to your computer and use it in GitHub Desktop.
async_harmful_transform
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
let Api_results= | |
[ { team: 'blue', | |
sales: 900, | |
userId: 'a0bc44d0-da95-495d-bcf2-535d0b9d8af3', | |
name: 'Sally Smith' }, | |
{ team: 'blue', | |
sales: 800, | |
userId: 'c509388c-9321-4fab-8062-3fa56b2b0d87', | |
name: 'John Jones' } ] | |
let Transformed_results= | |
{ team: 'blue', | |
sales: 1700, | |
users: | |
[ { sales: 900, | |
userId: 'a0bc44d0-da95-495d-bcf2-535d0b9d8af3', | |
name: 'Sally Smith' }, | |
{ sales: 800, | |
userId: 'c509388c-9321-4fab-8062-3fa56b2b0d87', | |
name: 'John Jones' } ] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment