simpleCart(js)

items
Items:
Total:

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

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.