Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

len

Returns the length of the given value.

Accepts arrays, objects and strings.

Examples

len([0, 0, 0]) // 3
len({"foo": "bar", "hello": "world"}) // 2
len("hello") // 5