predictype / predicates/bigints/bigintMembership / bigintMembership
bigintMembership(
source
,oper
,target
):boolean
Defined in: predicates/bigints/bigintMembership.ts:26
Checks if a bigint value is (or is not) a member of a set of bigints using the specified operation.
bigint
The source bigint value.
The membership operation to perform (e.g. ‘is_one_of’, ‘is_not_one_of’).
bigint
[]
The array of bigints to check membership against.
boolean
True if the membership check is valid according to the operator, otherwise false.
If the operation is not recognized.
const value1 = BigInt(5);
const value2 = BigInt(3);
const arr = [BigInt(1), BigInt(2), BigInt(5)];
bigintMembership(value1, 'is_one_of', arr); // true
bigintMembership(value2, 'is_not_one_of', arr); // true
Supported Operators: