From 90d2b21ec32d3169e33293cdb7283f661669ac13 Mon Sep 17 00:00:00 2001 From: Hrishi Hiraskar Date: Sun, 2 Oct 2016 14:52:37 +0530 Subject: Add files via upload --- testing/SendLog/js/Queue.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 testing/SendLog/js/Queue.js diff --git a/testing/SendLog/js/Queue.js b/testing/SendLog/js/Queue.js new file mode 100644 index 0000000..075a103 --- /dev/null +++ b/testing/SendLog/js/Queue.js @@ -0,0 +1,2 @@ +//code.stephenmorley.org +function Queue(){var a=[],b=0;this.getLength=function(){return a.length-b};this.isEmpty=function(){return 0==a.length};this.enqueue=function(b){a.push(b)};this.dequeue=function(){if(0!=a.length){var c=a[b];2*++b>=a.length&&(a=a.slice(b),b=0);return c}};this.peek=function(){return 0