UNPKG

ygd

Version:

An enterprise-class UI design language and React-based implementation

11 lines (9 loc) 172 B
export function formatDate(value, format) { if (!value) { return ''; } if (Array.isArray(format)) { format = format[0]; } return value.format(format); }