DEV Community

Discussion on: What’s your alternative solution? Challenge #28

Collapse
 
michi profile image
Michael Z • Edited

To clearly show the intent of such operations I created my own little library flooent.

import { given } from 'flooent'

given(array1).whereNotIn(array2)

If it was an array of objects and we are comparing the field key:

import { given } from 'flooent'

given(array1).whereNotIn('key', array2)