Skip to content

Instantly share code, notes, and snippets.

@stonetwig
stonetwig / robbers_language.js
Last active August 29, 2015 14:20
Rövarspråket (Robbers language) encoder
(function robbers(encode) {
var end = "";
encode.split('').forEach(function (char) {
if ('bcdfghjklmnpqrstvwxz'.split('').indexOf(char.toLowerCase()) !== -1)
end += char + "o" + char.toLowerCase();
else
end += char;
});