       args.unshift arg
       match
     )
+  fmt += ' ' + serialize arg, color for arg in args if args.length
 
-  fmt += ' ' + serialize arg, color for arg in args if args.length
   fmt = fmt.replace(ESCAPE_REGEX, '%') if fmt.replace?
   serialize fmt, color
 


colorize = (value, color) -> chalk[color](value)

prettyObj = (obj, color) ->
  lineColor = chalk[CONST.LINE_COLOR]

  fmtObj(obj, Infinity,
    punctuation: lineColor
    annotation: lineColor
    property: chalk[color]
    literal: lineColor
    number: lineColor
    string: lineColor
  )

serialize = (obj, color, key) ->
  # symbols cannot be directly casted to strings

'use strict'

{createFormatter} = require 'fmt-obj'
slice = require 'sliced'
chalk = require 'chalk'

