invert#

invert(target, prop)[source]#

Inverts the given array

Parameters:
  • target (Base) – The object which this model is associated with. This controls the length of the calculated array, and also provides access to other necessary properties.

  • prop (str) – Dictionary key pointing the values to invert