Closed
Description
As suggested by @timmywil in #686 (comment), add an "Array-Like" type to our Types page to clarify when a method accepts more than just Array
. Perhaps something like this:
Array-Like - Either a true JavaScript
Array
or a JavaScriptObject
that contains a numericlength
property. This latter case includes array-like objects commonly encountered in web-based code such as theArguments
object and theNodeList
object returned by many DOM methods. Note that when a jQuery API accepts either plain Objects or Array-Like objects, a plain Object with a numericlength
property will trigger the Array-Like behavior.
Metadata
Metadata
Assignees
Labels
No labels