Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index array #38

Closed
augisticz opened this issue Sep 7, 2016 · 2 comments
Closed

index array #38

augisticz opened this issue Sep 7, 2016 · 2 comments

Comments

@augisticz
Copy link

How to find index of Array Lockr

@augisticz
Copy link
Author

i want to remove object in array

@tsironis
Copy link
Owner

tsironis commented Sep 7, 2016

Hello @augisticz. This is a duplicate of #26.

For the time being, you can use this solution, but I would love if you participated in the discussion #26. We're thinking of adding a specific method that will take care of this case.

Current solution:

var carts = Lockr.smembers("cart");
carts.splice(0,1);  
Lockr.set("cart",carts);

If you have any additional questions or your issue isn't solved, please reopen this ticket.

@tsironis tsironis closed this as completed Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants