Retrieves a value from an object. Allows for more advanced selection options, including:
Allowed types:
Explicit: { x: 4 }
From function { x: function () }
Randomly pick one element from the array { x: [a, b, c, d, e, f] }
Random integer between min and max: { x: { randInt: [min, max] } }
Random float between min and max: { x: { randFloat: [min, max] } }
name | type | description |
---|---|---|
source | object |
The object to retrieve the value from. |
key | string |
The name of the property to retrieve from the object. If a property is nested, the names of its preceding properties should be separated by a dot ( |
defaultValue | * |
The value to return if the |
The value of the requested key.