i
?i
evaluates to true
if at least one element elem
in array cart
,will not equal scope.items
scope.the items
array in the cart
is not equal to at least ONE that is already in the array => the output you'll get i = true
Find more questions by tags AngularJavaScript