mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-12-19 06:58:15 +08:00
Fixing non compliant files (Ciphers, Conversions and Data Structures)
This commit is contained in:
@@ -23,7 +23,7 @@ var Queue = (function () {
|
||||
// Removes the value at the front of the queue
|
||||
Queue.prototype.dequeue = function () {
|
||||
if (this.queue.length === 0) {
|
||||
throw 'Queue is Empty'
|
||||
throw new Error('Queue is Empty')
|
||||
}
|
||||
|
||||
var result = this.queue[0]
|
||||
|
||||
Reference in New Issue
Block a user