Skip to main content

table.len()

Returns the number of slots in a table

Availability

Device + Agent

Returns

Integer — the number of slots in the table

Description

This method returns the number of slots in the table, ie. the number of key-value pairs currently stored within it.

Example Code