Fix documentation for toIterable

[ci skip]
This commit is contained in:
Benjamin Tan
2014-07-16 20:55:37 +08:00
parent d504b1f90f
commit 3f2732be7b

View File

@@ -3041,8 +3041,8 @@
* Converts `collection` to an array if it is not an array-like value. * Converts `collection` to an array if it is not an array-like value.
* *
* @private * @private
* @param {Array|Object|string} collection The collection to inspect. * @param {Array|Object|string} collection The collection to convert.
* @returns {Array|Object} Returns the iterable object. * @returns {Array} Returns the iterable object.
*/ */
function toIterable(collection) { function toIterable(collection) {
var length = collection ? collection.length : 0; var length = collection ? collection.length : 0;