Claude Pache (2014-02-15T01:12:37.000Z)
domenic at domenicdenicola.com (2014-02-21T20:17:40.481Z)
Le 14 févr. 2014 à 23:40, "C. Scott Ananian" <ecmascript at cscott.net> a écrit : > Call it whatever you like, although I'm always interested in learning > new phrases of ECMAspeak (if there's an appropriate name for this). Since you are interested: "The abstract operation ToLength converts its argument to an integer suitable for use as the length of an array-like object." [1] It doesn't really matter whether ToLength could extract a reasonable value for an unreasonable object, or not. But consistency is important: note that this operation is used whenever the length of an arraylike is expected, not only for default arguments. [1]: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength