Skip to content

Instantly share code, notes, and snippets.

var views = {
foo: function($el, el, props) {
console.log(props);
},
bar: function($el, el, props) {
console.log(props);
}
};
viewloader.execute(views);
function is_palindrome(str) {
str = str.toString();
return str === str.split('').reverse().join('');
}
/*
// Usage...
is_palindrome('racecar'); // true
is_palindrome(45654); // true