diff --git a/src/createParser.ts b/src/createParser.ts index 92a46b4..99e5423 100644 --- a/src/createParser.ts +++ b/src/createParser.ts @@ -72,7 +72,7 @@ export function createParser(props: ExpressionParserConstructor = {}) { return (condition) ? truthy : falsy }, // ARRAY ================================================================================== - includes: (_, value: any, arr: any[]) => arr.includes(value), + includes: (_, arr: any[], value: any,) => arr.includes(value), min: (_, ...args) => Math.min(...args), max: (_, ...args) => Math.max(...args), sum: (state, arr, filterExpression: string) => arr.reduce((prev: number, curr: number, index: number) => {