Sha256: 162a0044a3cf2ea843f848b184d31754c8be1d0cc5f46c46666350e634711fb5

Contents?: true

Size: 274 Bytes

Versions: 3

Compression:

Stored size: 274 Bytes

Contents

Lanes.u.format ||= {}

Lanes.u.format.shartDate = (d) ->
    _.moment(d).format('L')

Lanes.u.format.shartDateTime = (d) ->
    _.moment(d).format('lll')

Lanes.u.format.currency = (v) ->
    v ||= '0'
    _.sprintf('%0.2f', parseFloat(v)).replace(/\B(?=(\d{3})+\b)/g, ",")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lanes-0.5.0 client/lanes/lib/format.coffee
lanes-0.4.0 client/lanes/lib/format.coffee
lanes-0.3.0 client/lanes/lib/format.coffee