Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 172.70.111.34
Cant Read [ /etc/named.conf ]
8.1.5
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
node-genfun /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
basic.js
1.24
KB
-rw-r--r--
fmap.js
2.75
KB
-rw-r--r--
hellodog.js
598
B
-rw-r--r--
namespaced_tostring.js
1018
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : basic.js
var genfun = require("../") var frobnicate = genfun() frobnicate.add([String, Number], function (string, number) { console.log('Got a string and a number') }) frobnicate.add([Number, String], function (number, string) { console.log('Got a number and a string') }) /* Genfun can handle multiple-arity dispatch. Any extra arguments will be ranked as if the position had been specialized on Object.prototype */ frobnicate.add( [Number], // Equivalent to [Number, Object] // when called with two arguments. function (number) { console.log('Got a single number.') }) /* multi-arity dispatch can be exploited to define a 'default' methods */ frobnicate.add([], function () { console.log('Dispatch fell through to the default method.') }) /* Empty positions in the dispatch spec will be treated as Object */ frobnicate.add([Number, , Boolean], function (a, b, c) { console.log('Got a number, ', b, ', and a boolean') }) frobnicate(new String('foo'), new Number(1)) // => Got a string and a number frobnicate(1, 'foo') // => Got a number and a string frobnicate(1) // => Got a single number frobnicate(1, 1) // => Got a single number frobnicate(true) // => Dispatch fell through frobnicate(1, [], true) // => Got a number, [], and a boolean
Close