decide.nolog.cz/app/helpers/reverse-word.js
2014-10-30 21:44:22 +01:00

10 lines
392 B
JavaScript

import Ember from "ember";
// 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('');
});