Skip to content

Commit

Permalink
fix: update parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Adi Fatkhurozi committed Dec 8, 2023
1 parent 6b5ac0d commit 87cc28b
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
},
// OBJECT ==================================================================================
asign: (_, source: Object, target: Object) => Object.assign(source, target),
assign: (_, source: Object, target: Object) => Object.assign(source, target),
// ARRAY ===================================================================================
includes: (_, arr: any[], value: any,) => arr.includes(value),
min: (_, ...args) => Math.min(...args),
Expand Down

0 comments on commit 87cc28b

Please sign in to comment.