Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 514 Bytes

values.md

File metadata and controls

40 lines (29 loc) · 514 Bytes

object.values

Applies a lens to all values of the input object.

object.values: Object -> Object
  on_error: fail|handler|keep|null|skip|[...] = fail
  lenses: Lens

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

Example

Applying the following lens:

---
object.values:
  lenses:
  - str.upcase

to the following input:

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

will return:

---
firstname: 'BERNARD'
company: 'ENSPIRIT'