"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListToArray = void 0;
const index_js_1 = require("../model/index.js");
class ListToArray extends index_js_1.Pipe {
    async apply(inputSet, _ctx) {
        const array = inputSet.map(el => el.value);
        const el = await this.createDocument(array);
        return [el];
    }
}
exports.ListToArray = ListToArray;
ListToArray.$type = 'List.toArray';
ListToArray.$help = `
Returns a single element whose value is an array containing all values of the input set.
The DOM node of the result is set to top #document.

### Use For

- transforming elements into arrays (e.g. to use as part of Job Output)

### See Also

- Unfold Array: for reverse functionality
`;
//# sourceMappingURL=List.toArray.js.map