This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/helpers/null-time.js
2015-03-19 09:17:09 -08:00

9 lines
239 B
JavaScript

import Ember from 'ember';
import { formatDate } from '../utils/date-helpers';
export default Ember.Handlebars.makeBoundHelper(function(value, format) {
if (value == null) {
return 'N/A';
}
return formatDate(value, format);
});