Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 451 Bytes

keys.md

File metadata and controls

39 lines (28 loc) · 451 Bytes

object.keys

Applies a lens to all keys of the input object.

object.keys: Object -> Object
  lenses: Lens

This lens transforms all keys of its input object by using the lenses provided.

Example

Applying the following lens:

---
object.keys:
  lenses:
  - str.upcase

to the following input:

---
firstname: 'Bernard'
company: 'Enspirit'

will return:

---
FIRSTNAME: 'Bernard'
COMPANY: 'Enspirit'