javascript array is more confusing than ruby

. i need to do few console.log test before i'm sure it throw what i wanted...
and i also just experience some silly things happening... i strugle in hash + finding matching element using regexp for about 3 hours...
it's for grabbing the plugin parameters. filter it by regexp. and only add parameter that have certain regexp pattern and value not null ("")..
it's supposed to be simple...
i'm sure the code is right... changing it few times using variation of forEach, for(...in), for(...of), regular for...
i also sure my regexp is correct. but it always throw empty... (data not match)...
you know what's wrong...??? it apparently... I need to reopen my plugin editor... double click... then press ok... to refresh the changes
i made to plugin parameter... i feel so stupid >.<.
just wanna share this... in case someone have same experience... if you're changing your plugin parameters from js files... (any change)
REOPEN your plugin editor... RECLICK on your plugin T.T. so you don't waste 3 hour like me.