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

Make .delete() return a boolean #66

Merged
merged 10 commits into from
Sep 6, 2020

Conversation

Richienb
Copy link
Contributor

@Richienb Richienb commented Aug 26, 2020

Fixes: #65

// @sindresorhus

@sindresorhus
Copy link
Owner

I misunderstood your request. I thought you mean to return whether it was deleted or not. I think that makes more sense. Like https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete

@Richienb Richienb changed the title Return result from .delete() Return whether the value had existed from .delete() Aug 30, 2020
@Richienb
Copy link
Contributor Author

@sindresorhus I've changed the logic to implement that. Travis CI is not working right now.

readme.md Outdated Show resolved Hide resolved
Co-authored-by: Sindre Sorhus <[email protected]>
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

Successfully merging this pull request may close these issues.

.delete() should return the result
2 participants