Inverse of [].filter in JS? March 20, 2023 by Tarik You can use an arrow function: const a = someArr.filter(someFilter); const a = someArr.filter(e => !someFilter(e));