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-08-24 13:40:40 -07:00

11 lines
268 B
JavaScript

import Ember from 'ember';
import { formatDate } from '../utils/date-helpers';
export default Ember.Helper.helper(function(params) {
let value = params[0],
format = params[1];
if (value == null) {
return 'N/A';
}
return formatDate(value, format);
});