removing affix with javascript in a array
<p>where do we start if we want to remove the affix from this sentence <b>me</b>ang<b>an</b> <b>me</b>nang<b>kan</b> <b>di</b>menang<b>kan</b></p>

<pre><code>affix_list = [
'me-an',
'me-kan,
'di-kan
]

string = 'meangan menangkan dimenangkan'
</code></pre>

<p>so it will output</p>

<pre><code>output = [
'ang',
'nang'
'menang'
]
</code></pre>
