Home > @uniformdev/canvas > FlattenValuesOptions

FlattenValuesOptions interface

Signature:

Properties

PropertyModifiersTypeDescription
levels?number<p>(Optional) If the property has nested properties, like Blocks or Assets can, then how many levels should we traverse.</p><p>You can set this to <code>Infinity</code> although it would be more advisable, for performance, to use the number you need in your code.</p><p>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</p><p> 1</p>
toSingle?boolean(Optional) Take only the first item from an array of values, flatten it and return it as a single object