summaryrefslogtreecommitdiff
path: root/assets/viz/2/goog/array/array.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/viz/2/goog/array/array.js')
-rw-r--r--assets/viz/2/goog/array/array.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/assets/viz/2/goog/array/array.js b/assets/viz/2/goog/array/array.js
index 4fdfcaf..47e0dbb 100644
--- a/assets/viz/2/goog/array/array.js
+++ b/assets/viz/2/goog/array/array.js
@@ -791,7 +791,7 @@ goog.array.removeAllIf = function(arr, f, opt_obj) {
* @return {!Array<?>} The new resultant array.
*/
goog.array.concat = function(var_args) {
- return Array.prototype.concat.apply(Array.prototype, arguments);
+ return Array.prototype.concat.apply([], arguments);
};
@@ -802,7 +802,7 @@ goog.array.concat = function(var_args) {
* @template T
*/
goog.array.join = function(var_args) {
- return Array.prototype.concat.apply(Array.prototype, arguments);
+ return Array.prototype.concat.apply([], arguments);
};
@@ -1366,14 +1366,14 @@ goog.array.binaryRemove = function(array, value, opt_compareFn) {
/**
* Splits an array into disjoint buckets according to a splitting function.
* @param {Array<T>} array The array.
- * @param {function(this:S, T,number,Array<T>):?} sorter Function to call for
+ * @param {function(this:S, T, number, !Array<T>):?} sorter Function to call for
* every element. This takes 3 arguments (the element, the index and the
* array) and must return a valid object key (a string, number, etc), or
* undefined, if that object should not be placed in a bucket.
* @param {S=} opt_obj The object to be used as the value of 'this' within
* sorter.
- * @return {!Object} An object, with keys being all of the unique return values
- * of sorter, and values being arrays containing the items for
+ * @return {!Object<!Array<T>>} An object, with keys being all of the unique
+ * return values of sorter, and values being arrays containing the items for
* which the splitter returned that key.
* @template T,S
*/