aboutsummaryrefslogtreecommitdiff
path: root/src/utility.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-05 13:46:37 -0700
committeralon@honor <none@none>2010-09-05 13:46:37 -0700
commit9b1f6f9cf2b769f32178bebf46dc5390f82355c9 (patch)
treedf0f62a58523622ccb8be98d04881b0886d0c22f /src/utility.js
parent545cad31eb074cc5040bb8a81ea3d9b7814587de (diff)
optimize FunctionReconstructor
Diffstat (limited to 'src/utility.js')
-rw-r--r--src/utility.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js
index 90805bad..0a5a22fb 100644
--- a/src/utility.js
+++ b/src/utility.js
@@ -152,3 +152,8 @@ function PROF(pass) {
PROF_TIME = Date.now();
}
+// Usage: arrayOfArrays.reduce(concatenator, []);
+function concatenator(x, y) {
+ return x.concat(y);
+}
+