mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
10 lines
226 B
JavaScript
10 lines
226 B
JavaScript
|
import {helper} from '@ember/component/helper';
|
||
|
|
||
|
export function formatNumber(number) {
|
||
|
return Number(number).toLocaleString();
|
||
|
}
|
||
|
|
||
|
export default helper(function ([number]/*, hash*/) {
|
||
|
return formatNumber(number);
|
||
|
});
|