(value, { text, replacer = '' })
| 13 | |
| 14 | const mp2 = MessagePipe({ |
| 15 | remove(value, { text, replacer = '' }) { |
| 16 | if (!text) { |
| 17 | return ''; |
| 18 | } |
| 19 | |
| 20 | return value.replace(text, replacer); |
| 21 | }, |
| 22 | }) |
| 23 | |
| 24 | console.log(mp2.compile('Hello {planet | remove, "text":"a", replacer: "4"}!')({ planet: 'Mars' })) |
nothing calls this directly
no outgoing calls
no test coverage detected