⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
node_modules
/
async-each
/
View File Name :
index.js
// async-each MIT license (by Paul Miller from https://paulmillr.com). (function(globals) { 'use strict'; var each = function(items, next, callback) { if (!Array.isArray(items)) throw new TypeError('each() expects array as first argument'); if (typeof next !== 'function') throw new TypeError('each() expects function as second argument'); if (typeof callback !== 'function') callback = Function.prototype; // no-op if (items.length === 0) return callback(undefined, items); var transformed = new Array(items.length); var count = 0; var returned = false; items.forEach(function(item, index) { next(item, function(error, transformedItem) { if (returned) return; if (error) { returned = true; return callback(error); } transformed[index] = transformedItem; count += 1; if (count === items.length) return callback(undefined, transformed); }); }); }; if (typeof define !== 'undefined' && define.amd) { define([], function() { return each; }); // RequireJS } else if (typeof module !== 'undefined' && module.exports) { module.exports = each; // CommonJS } else { globals.asyncEach = each; // <script> } })(this);