(input, filter, options)
| 795 | } |
| 796 | |
| 797 | export function exclude(input, filter, options) { |
| 798 | if (Array.isArray(filter)) { |
| 799 | const filterSet = new Set(filter); |
| 800 | return pick(input, key => !filterSet.has(key), options); |
| 801 | } |
| 802 | |
| 803 | return pick(input, (key, value) => !filter(key, value), options); |
| 804 | } |