Home > @uniformdev/canvas > FlattenValuesOptions > levels

FlattenValuesOptions.levels property

If the property has nested properties, like Blocks or Assets can, then how many levels should we traverse.

You can set this to Infinity although it would be more advisable, for performance, to use the number you need in your code.

Where: levels=0 will only extract the properties of the current object levels=1 will include any child blocks or assets on the current object but not any grandchildren

1

Signature: