Mutates an object or array by deleting properties that match specified primitive types.
The object or array to mutate
The primitive types to exclude (e.g., 'Function', 'String')
The mutated object reference
exclude({ a: 1, b: () => {} }, 'Function'); // { a: 1 } Copy
exclude({ a: 1, b: () => {} }, 'Function'); // { a: 1 }
Mutates an object or array by deleting properties that match specified primitive types.