String converter


/ Published in: JavaScript
Save to your folder(s)

example of use:

var translationTable = { a:1, bb:2, b:3, c:4 };
var MyTranslater = CreateTranslator( translationTable );
MyTranslater('aabbbc'); // returns: 11234

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.