UNPKG
ts-flex-query
Version:
latest (1.7.0)
1.7.0
1.6.1
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
0.4.1
0.4.0
0.3.1
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
Flexible and type-safe data queries
github.com/black-comb/ts-flex-query
black-comb/ts-flex-query
ts-flex-query
/
helpers
/
pipe-expression.js
7 lines
•
282 B
JavaScript
View Raw
1
2
3
4
5
6
7
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
pipeExpression
= pipeExpression;
function
pipeExpression
(
input, ...operators
) {
return
operators.
reduce
(
(
expr, op
) =>
op.
instantiate
(expr), input); }
//# sourceMappingURL=pipe-expression.js.map