⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
handle-thing
/
lib
/
View File Name :
queue.js
function Queue () { this.head = new Item('head', null) } module.exports = Queue Queue.prototype.append = function append (kind, value) { var item = new Item(kind, value) this.head.prepend(item) return item } Queue.prototype.isEmpty = function isEmpty () { return this.head.prev === this.head } Queue.prototype.first = function first () { return this.head.next } function Item (kind, value) { this.prev = this this.next = this this.kind = kind this.value = value } Item.prototype.prepend = function prepend (other) { other.prev = this.prev other.next = this other.prev.next = other other.next.prev = other } Item.prototype.dequeue = function dequeue () { var prev = this.prev var next = this.next prev.next = next next.prev = prev this.prev = this this.next = this return this.value } Item.prototype.isEmpty = function isEmpty () { return this.prev === this }