nl_tokens: Updates an edits object for a specific product .
pl_tokens: function updateProductEdits ( edits , productId , doUpdate ) { const prevEdits = edits || [ ] ; let found = false ; const newEdits = prevEdits . map ( productEdits => { if ( isEqual ( productId , productEdits . productId ) ) { found = true ; return doUpdate ( productEdits ) ; } return productEdits ; } ) ; if ( ! <mask> ) { newEdits . push ( doUpdate ( undefined ) ) ; } return newEdits ; }