items
simpleCart.has( item )
arguments:
- item: item to check if in the cart.
returns:
- The item that is in the cart, if the item provided is already there.
- False, if the item is not in the cart.
var myItem = simpleCart.add({ name: "Poster" , price: 4 }); simpleCart.has( myItem ); // true myItem.remove(); simpleCart.has( myItem ); // false
Comments
- There are no comments for this entry yet.