nire0510
2/29/2016 - 11:17 AM

Ember helper: display fallback value if original is missing

Ember helper: display fallback value if original is missing

import Ember from 'ember';

export function fallback(params/*, hash*/) {
  return params[0] || params[1];
}

export default Ember.Helper.helper(fallback);