.size

The .size property returns the number of entries in a Map object.

Syntax

set.size;

No parameters are needed for the .size property.

Codebyte Example

Code
Output
Loading...

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn JavaScript on Codecademy