dist/index.js
function arrayToObject(value, toKeys) {
    return (iterate(value, (row, idx, iter) => {
        if (toKeys) {
            if (isInteger(row) || isString(row))
                iter.key(idx + 1);
            return row;
        }
        else {
            iter.key(row);
            return idx + 1;
        }
    }, {}));
}
function arrayToObject(value, toKeys) {
    return (iterate(value, (row, idx, iter) => {
        if (toKeys) {
            if (isInteger(row) || isString(row))
                iter.key(idx + 1);
            return row;
        }
        else {
            iter.key(row);
            return idx + 1;
        }
    }, {}));
}
[[include: TAnyArray-to-object.md]]
@param value
@param toKeys