UNPKG

@playform/pipe

Version:
2 lines (1 loc) 358 B
var n=(...[f,o])=>{if(typeof f<"u")if(Array.isArray(f)||f instanceof Set)for(const e of f)r.add(e);else r.add(f);for(const e of r)for(const t of o)switch(!0){case typeof e=="string":{(t[0].match(e)||t[1].match(e))&&o.delete(t[0]);break}case typeof e=="function":(e(t[0])||e(t[1]))&&o.delete(t[0])}return o};const r=new Set;export{r as Filters,n as default};