Logo

Programming-Idioms

History of Idiom 117 > diff from v10 to v11

Edit summary for version 11 by :
New JS implementation by user [about]

Version 10

2016-02-16, 15:06:30

Version 11

2016-02-16, 16:08:02

Idiom #117 Get list size

Set n to the number of elements of list x.

Idiom #117 Get list size

Set n to the number of elements of list x.

Code
var n = x.length;
Doc URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length