summaryrefslogtreecommitdiff
path: root/assets/viz/2/goog/array/array.js
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2018-11-13 00:24:09 -0500
committerBrian Picciano <mediocregopher@gmail.com>2018-11-13 00:24:09 -0500
commit2b4757367470d8e36bc00901dac567e375796ed4 (patch)
tree72368624006c21d28228a100ee88590c7bf95e58 /assets/viz/2/goog/array/array.js
parent5ed62d23b4bbbf7717de4adfa0eaf2af19365408 (diff)
update viz 2 to use the newest version, which has some performance improvements and is easier to read the code for. also update the description
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
*/