Skip to content

Commit

Permalink
fix: update function includes
Browse files Browse the repository at this point in the history
  • Loading branch information
adyfk committed Oct 26, 2023
1 parent 678cc6c commit 69b17d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 69b17d2

Please sign in to comment.