how to do the opposite of inArray()?

i'm getting all collections (music single, ep, or album) that contain a certain tag. currently i'm doing this:
const chosenTagCollectionIDs = tagMap.get(tag);

    const collections = await getCollections({
        where: inArray(collectionsTable.id, chosenTagCollectionIDs),
        sort: true
    });
where chosenTagCollectionIDs is a list of collection ids that have the tag i'm looking for. collectionsTable.tags is a list of tags. can i somehow use inArray() to check if the collectionsTable.tags array contains tag?
Was this page helpful?