.size

Published Jun 16, 2022Updated Oct 8, 2022
Contribute to Docs

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...

All contributors

Looking to contribute?

Learn JavaScript on Codecademy