nl_tokens: Merge a product into the products list
pl_tokens: function updateCachedProduct ( products , product ) { let found = false ; const updatedProduct = { ... product , name : decodeEntities ( product . name ) } ; const newProducts = products . map ( p => { if ( p . id === product . id ) { found = true ; return updatedProduct ; } return p ; } ) ; if ( ! <mask> ) { newProducts . push ( updatedProduct ) ; } return newProducts ; }