How to check if an object exist in 2 arrays in angular
If you have an array that must be filtered based on anther array value.
optimized solution for a filtering a json array with sample set of data(object)
I’m trying to iterate json array (sampleData) with sample enum object (testSet) and achieve the desired result (OUTPUT) through Angular typeScript (Array of strings).
Shopping cart Issue (incrementing and decrementing product amount)
I’m building a shopping cart and i encountered a problem decrementing products from the array.
this cart takes in a product, if a product already exist, increment its amount.
for decrementing if the item amount is ===1, add to cart.
This is my Add to cart function