web/vue/public/vendor/humanize-duration.js
function humanizer (passedOptions) {
    var result = function humanizer (ms, humanizerOptions) {
      var options = extend({}, result, humanizerOptions || {})
      return doHumanization(ms, options)
    }

    return extend(result, {
      language: 'en',
      delimiter: ', ',
      spacer: ' ',
      conjunction: '',
      serialComma: true,
      units: ['y', 'mo', 'w', 'd', 'h', 'm', 's'],
      languages: {},
      round: false,
      unitMeasures: {
        y: 31557600000,
        mo: 2629800000,
        w: 604800000,
        d: 86400000,
        h: 3600000,
        m: 60000,
        s: 1000,
        ms: 1
      }
    }, passedOptions)
  }
function humanizer (passedOptions) {
    var result = function humanizer (ms, humanizerOptions) {
      var options = extend({}, result, humanizerOptions || {})
      return doHumanization(ms, options)
    }

    return extend(result, {
      language: 'en',
      delimiter: ', ',
      spacer: ' ',
      conjunction: '',
      serialComma: true,
      units: ['y', 'mo', 'w', 'd', 'h', 'm', 's'],
      languages: {},
      round: false,
      unitMeasures: {
        y: 31557600000,
        mo: 2629800000,
        w: 604800000,
        d: 86400000,
        h: 3600000,
        m: 60000,
        s: 1000,
        ms: 1
      }
    }, passedOptions)
  }
function humanizer ( passedOptions ) { var result = function humanizer ( ms , humanizerOptions ) { var options = extend ( { } , result , humanizerOptions || { } ) return doHumanization ( ms , options ) } return extend ( result , { language : 'en' , delimiter : ', ' , spacer : ' ' , conjunction : '' , serialComma : true , units : [ 'y' , 'mo' , 'w' , 'd' , 'h' , 'm' , 's' ] , languages : { } , round : false , unitMeasures : { y : 31557600000 , mo : 2629800000 , w : 604800000 , d : 86400000 , h : 3600000 , m : 60000 , s : 1000 , ms : 1 } } , passedOptions ) }
You can create a humanizer, which returns a function with default parameters.
You can create a humanizer which returns a function with default parameters .