Removes some keys from the input object.
object.allbut: Object -> Object
defn: Array<String> = []
This lens copies its input object but the keys
specified as defn
.
Applying the following lens:
---
object.allbut:
defn: [ 'age', 'hobbies' ]
to the following input:
---
firstname: 'Bernard'
company: 'Enspirit'
age: 42
hobbies: [ 'programming', 'databases' ]
will return:
---
firstname: 'Bernard'
company: 'Enspirit'