rauschma/strmap — comment on commit cc2cb14a9acf6971440434b139a441c08412997a
File: strmap.js line 18
By rauschma:

Good idea. Note: then you have to append the escape character. That is something that I hadn’t thought of previously – the above was my poor man’s endsWith(), but startsWith() is much easier to do via indexOf().