Object.len

Object.len

Object.len

Function

Returns the number of key-value pairs of the object itself.

Syntax

Parameters

No parameters.

Return value

TypeDescription
IntReturns the number of object properties.

Example

Notes

  • Only count the key values in the current object.