Returns the number of items in a thing.
This function does not generate a change.
thing.len()
None
Returns the number of items in a thing.
This code uses
len()
to return the number of items in a thing:
{name: 'Iris', age: 6}.len();
Return value in JSON format
2