Last active
June 6, 2018 01:10
-
-
Save ZhenDeng/c1f3739d0ebe7e5875fdf24794a875e4 to your computer and use it in GitHub Desktop.
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
shoppingCarts: ShoppingCart[] = []; | |
shoppingCart: ShoppingCart; | |
this.shoppingCarts.map((value, key) => { | |
if(value.id == this.shoppingCart.id){ | |
this.shoppingCarts[key] = this.shoppingCart; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment