Skip to content

Commit

Permalink
chore: fixing code style
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiistotskyi committed Jan 31, 2024
1 parent ec1c7d6 commit 2238124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/src/interpreters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const exists: Interpret<Field<boolean>> = (node, object, { get }) => {
const test = (value: {}) => {
if (value == null) return Boolean(value) === node.value;
return value.hasOwnProperty(field) === node.value;
}
};

return isArrayAndNotNumericField(item, field) ? item.some(test) : test(item);
};
Expand Down

0 comments on commit 2238124

Please sign in to comment.