PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/p-map-series

Просмотр файла: index.js

'use strict';

const pMapSeries = async (iterable, mapper) => {
	const result = [];
	let index = 0;

	for (const value of iterable) {
		// eslint-disable-next-line no-await-in-loop
		result.push(await mapper(await value, index++));
	}

	return result;
};

module.exports = pMapSeries;
// TODO: Remove this for the next major release
module.exports.default = pMapSeries;

Выполнить команду


Для локальной разработки. Не используйте в интернете!