And here are two more ways
[{"id":"8034f1d4.e672","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"po_line\":4,\"line_items\":[{\"line_number\":1},{\"line_number\":2},{\"line_number\":3},{\"line_number\":4}]}","payloadType":"json","x":130,"y":1340,"wires":[["539c5327.bfaebc","4f83af10.44de78"]]},{"id":"539c5327.bfaebc","type":"change","z":"c791cbc0.84f648","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$$.payload.po_line in $$.payload.line_items.line_number ","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":1340,"wires":[["1f9c2371.428565"]]},{"id":"4f83af10.44de78","type":"function","z":"c791cbc0.84f648","name":"","func":"msg.payload = msg.payload.line_items.reduce((a,e) => (e.line_number === msg.payload.po_line) || a, false)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":310,"y":1400,"wires":[["1f9c2371.428565"]]},{"id":"1f9c2371.428565","type":"debug","z":"c791cbc0.84f648","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":1440,"wires":[]}]
Javascript
msg.payload = msg.payload.line_items.reduce((a,e) => (e.line_number === msg.payload.po_line) || a, false)
return msg;
JSONata
$$.payload.po_line in $$.payload.line_items.line_number