"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListExists = void 0;
const index_js_1 = require("../model/index.js");
class ListExists extends index_js_1.Pipe {
    async apply(inputSet, _ctx) {
        const value = inputSet.length > 0;
        const el = await this.createDocument(value);
        return [el];
    }
}
exports.ListExists = ListExists;
ListExists.$type = 'List.exists';
ListExists.$help = `
Returns a single element whose value is \`true\` if the input set contains one or more elements,
and \`false\` otherwise. The DOM node of the result is set to top #document.

### Use For

- checking if collection has elements (e.g. as part of filters or matchers)
`;
//# sourceMappingURL=List.exists.js.map