Current Path: > > lib > node_modules > npm > node_modules > asynckit > > lib
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
abort.js | File | 497 bytes | March 10 2021 14:36:40. | |
async.js | File | 599 bytes | March 10 2021 14:36:40. | |
defer.js | File | 441 bytes | March 10 2021 14:36:40. | |
iterate.js | File | 1794 bytes | March 10 2021 14:36:40. | |
readable_asynckit.js | File | 1611 bytes | March 10 2021 14:36:40. | |
readable_parallel.js | File | 673 bytes | March 10 2021 14:36:40. | |
readable_serial.js | File | 655 bytes | March 10 2021 14:36:40. | |
readable_serial_ordered.js | File | 941 bytes | March 10 2021 14:36:40. | |
state.js | File | 941 bytes | March 10 2021 14:36:40. | |
streamify.js | File | 2964 bytes | March 10 2021 14:36:40. | |
terminator.js | File | 533 bytes | March 10 2021 14:36:40. |
// API module.exports = state; /** * Creates initial state object * for iteration over list * * @param {array|object} list - list to iterate over * @param {function|null} sortMethod - function to use for keys sort, * or `null` to keep them as is * @returns {object} - initial state object */ function state(list, sortMethod) { var isNamedList = !Array.isArray(list) , initState = { index : 0, keyedList: isNamedList || sortMethod ? Object.keys(list) : null, jobs : {}, results : isNamedList ? {} : [], size : isNamedList ? Object.keys(list).length : list.length } ; if (sortMethod) { // sort array keys based on it's values // sort object's keys just on own merit initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) { return sortMethod(list[a], list[b]); }); } return initState; }
SILENT KILLER Tool