github.com/outbrain/consul@v1.4.5/ui-v2/app/helpers/format-number.js (about)

     1  import { helper } from '@ember/component/helper';
     2  import callIfType from 'consul-ui/utils/helpers/call-if-type';
     3  
     4  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
     5  export function toLocaleString(num, options) {
     6    // TODO: If I make locale configurable use an option
     7    // not mutiple arguments
     8    return num.toLocaleString(undefined, options);
     9  }
    10  export default helper(callIfType('number')(toLocaleString));