BLUE
PHP 7.4.33
Path:
/var/www/sitesecurity2.0.bitkit.dk/httpdocs/node_modules/is-function
Run
Logout
Edit File
Size: 1.25 KB
Close
/var/www/sitesecurity2.0.bitkit.dk/httpdocs/node_modules/is-function/test.js
Text
Base64
var test = require('tape') var isFunction = require('./index.js') test('isFunction', function (t) { t.ok(!isFunction(), 'undefined is not a function') t.ok(!isFunction(null), 'null is not a function') t.ok(!isFunction(''), 'string is not a function') t.ok(!isFunction(/a/), 'regex is not a function') t.ok(!isFunction(true), 'true is not a function') t.ok(!isFunction(false), 'false is not a function') t.ok(!isFunction(NaN), 'NaN is not a function') t.ok(!isFunction(42), '42 is not a function') t.ok(isFunction(function () {}), 'function is a function') t.ok(isFunction(setTimeout), 'setTimeout is a function') t.end() }) if (typeof window !== 'undefined') { test('browser quirks', function (t) { t.plan(2) t.ok(isFunction(window.alert), 'alert is a function') window.testRegExpFromIframe = function (regexp) { t.ok(!isFunction(regexp)) } var iframe = document.createElement('iframe') document.body.appendChild(iframe) iframe.contentWindow.document.write([ "<html><body><script type=\"text/javascript\">", "parent.testRegExpFromIframe(/a/)", "</script></body></html>" ].join("\n")); }) }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
460 B
lrw-r--r--
2026-02-19 08:43:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.03 KB
lrw-r--r--
2026-02-19 08:43:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
975 B
lrw-r--r--
2026-02-19 08:43:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
527 B
lrw-r--r--
2026-02-19 08:43:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test.js
1.25 KB
lrw-r--r--
2026-02-19 08:43:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).