decide.nolog.cz/app/helpers/reverse-word.js
2014-07-06 17:37:54 +02:00

8 lines
364 B
JavaScript

// Please note that Handlebars helpers will only be found automatically by the
// resolver if their name contains a dash (reverse-word, translate-text, etc.)
// For more details: http://stefanpenner.github.io/ember-app-kit/guides/using-modules.html
export default Ember.Handlebars.makeBoundHelper(function(word) {
return word.split('').reverse().join('');
});