This is the ThingsDB documentation for version v0, click here for the latest version!
Returns the number of items in a thing.
This function does not generate an event.
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