size
Returns the length of a string or an array.
For a string, the length is the count of characters it contains. For an array, the length is the count of items it includes.
Parameters
array{Array|String}: The string or array. This parameter is required.returns{Number}: The length.
Usage
{{size array}}
Example
{{ size product.title }}
{{ size product.variants }}
Was this article helpful to you?