summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 2a4f86a..91055f9 100644
--- a/js/util.js
+++ b/js/util.js
@@ -83,6 +83,7 @@ function smoothstep(min,max,n){
return t * t * (3.0 - 2.0 * t)
}
+function toArray(a){ return Array.prototype.slice.call(a) }
function shuffle(a){
for (var i = a.length; i > 0; i--){
var r = randint(i)