function toArray(collection) {
      var length = collection ? collection.length : 0;
      if (isLength(length)) {
        return (lodash.support.unindexedChars && isString(collection))
          ? collection.split('')
          : baseSlice(collection);
      }
      return values(collection);
    }
Converts `collection` to an array.

@static
@memberOf _
@category Collection
@param {Array|Object|string} collection The collection to convert.
@returns {Array} Returns the new converted array.
@example

(function() { return _.toArray(arguments).slice(1); })(1, 2, 3, 4);
// => [2, 3, 4]