const context = {
items: [
{id: 123, title: 'Hello world'},
{id: 456, title: 'Good bye world'}
],
my: {
itemId: 123
}
}
// The following will resolve with an empty array:
jexl.eval('items[.id == my.itemId]', context).then(console.log)
// While this will give the correct subset:
jexl.eval('items[.id == (my.itemId)]', context).then(console.log)
Hi,
thank you for this awesome library :)
I just noticed that: