Skip to content

Adds notInArray and notOneOf.#262

Closed
czirkoszoltan wants to merge 0 commit intowebmozarts:masterfrom
czirkoszoltan:master
Closed

Adds notInArray and notOneOf.#262
czirkoszoltan wants to merge 0 commit intowebmozarts:masterfrom
czirkoszoltan:master

Conversation

@czirkoszoltan
Copy link
Contributor

These functions are negations of inArray and oneOf. The negations did not previously exist for these two functions. These are mostly just copypastes of the existing ones.

@Kylob
Copy link

Kylob commented Dec 31, 2021

I was just looking for exactly this. Thank you! When do you think it might be released?

@tvdijen
Copy link
Contributor

tvdijen commented Jan 2, 2022

Yes!! I also have a bunch of use cases for this!!

@PHLAK
Copy link

PHLAK commented Jul 24, 2024

I was just looking for notInArray() today and was disappointed that this wasn't available natively. Would be nice to see this added.

@Smoqqqq
Copy link

Smoqqqq commented Nov 14, 2025

I also would like such an assert to exist. Any maintainer to merge that in ? Anything missing on this PR ?

@tvdijen
Copy link
Contributor

tvdijen commented Nov 14, 2025

Perhaps @shadowhand can respond to this?

@shadowhand
Copy link
Collaborator

I don't really want to add new assertions to the current versions, but PR #320 is setting up the next major version. New additions should go there.

@tvdijen
Copy link
Contributor

tvdijen commented Nov 14, 2025

Thanks for getting back @shadowhand !!

It shouldn't be too hard to rebase this against feature/2-0.. The OP @czirkoszoltan seems to have near-zero Github-activity though..

@shadowhand Just out of curiosity; what's the time-frame on 2.0?

@shadowhand
Copy link
Collaborator

@tvdijen planning to release before Jan 2026.

@czirkoszoltan
Copy link
Contributor Author

I'll create one for the new version.

@czirkoszoltan
Copy link
Contributor Author

Moved to #323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants