code: function capitalize(value) {
    var result = []
    var index = -1
    var length = value.length
  
    while (++index < length) {
      result[index] = value[index].charAt(0).toUpperCase() + value[index].slice(1)
    }
  
    return result
  }
docs: /* Capitalize a list of values.