Skip to content

Make .delete() return a boolean#66

Merged
sindresorhus merged 10 commits intosindresorhus:masterfrom
Richienb:delete-result
Sep 6, 2020
Merged

Make .delete() return a boolean#66
sindresorhus merged 10 commits intosindresorhus:masterfrom
Richienb:delete-result

Conversation

@Richienb
Copy link
Copy Markdown
Contributor

@Richienb Richienb commented Aug 26, 2020

Fixes: #65

// @sindresorhus

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
@sindresorhus
Copy link
Copy Markdown
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

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
@Richienb Richienb changed the title Return result from .delete() Return whether the value had existed from .delete() Aug 30, 2020
@Richienb
Copy link
Copy Markdown
Contributor Author

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

Comment thread index.d.ts
Comment thread readme.md Outdated
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
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