Prism · Objects
$length
How many elements a list has, or how many characters a string has.
{
tags: ['math', 'engine', 'notes'],
name: 'Ada Lovelace',
}{
tags: { $length: { $ref: '$.tags' } },
name: { $length: { $ref: '$.name' } },
}{ tags: 3, name: 12 }Runs in this page on the installed package. The input and the expected output are defined by the example.