"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toArray = toArray;
exports.asyncMap = asyncMap;
function toArray(value) {
    return Array.isArray(value) ? value : [value];
}
toArray.__type = ['value', 'toArray', 'PP""FJ2!"F/"'];
async function asyncMap(items, callback) {
    const result = [];
    for (let i = 0; i < items.length; i++) {
        result.push(await callback(items[i], i));
    }
    return result;
}
asyncMap.__type = ['items', 'item', 'idx', '', 'callback', 'asyncMap', 'P"F2!P"2"\'2#"`/$2%"F`/&'];
//# sourceMappingURL=array.js.map