It would be handy if a function similar to the following is present alongside contains().
/**
* Check if an array does not contain a value.
* @param array - The array to check
* @param value - The value to check for
* @returns true if the array does not contain the value, true otherwise
*/
export const doesNotContain = (array: Array<any>, value: any) =>
!array.includes(value);Please authenticate to join the conversation.
Canceled
Feature
Low Priority
10 months ago

Sridhar Katakam
Get notified by email when there are changes.
Canceled
Feature
Low Priority
10 months ago

Sridhar Katakam
Get notified by email when there are changes.