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
About 1 year ago

Sridhar Katakam
Get notified by email when there are changes.
Canceled
Feature
Low Priority
About 1 year ago

Sridhar Katakam
Get notified by email when there are changes.