Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ArrayWithContains = (arrRt, item, count) => (args => Constraint(arrRt, list => {
const res = contains(
list, args,
() => true,
(_, res) => `Array contains less than ${res.needCount} items`,
(_, res) => `Array contains more than ${res.needCount} items`
);
return res;
}, args))({tag: contains.name, count, item})