Reverse_lookup
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Reverse_lookup

  • Dark
    Light
  • PDF

Article Summary

Given a value and a target object, returns the key under which the given value is stored in the object. If multiple keys match the given value, the first key is returned.

Function signature

REVERSE_LOOKUP(object: Object, value: String|Number|Boolean|Array|Object) => String
ParameterDescription
ObjectObject whose key will be get
ValueValue to find key

Examples

animal = {"name":"dog","weight":123,"active":false,"children":0}
FormulaReturn value
REVERSE_LOOKUP(animal, 123)weight
REVERSE_LOOKUP(animal, false)active

Was this article helpful?

What's Next