code: function parsePrimitive(info, name, value) {
    var result = value
  
    if (info.number || info.positiveNumber) {
      if (!isNaN(result) && result !== '') {
        result = Number(result)
      }
    } else if (info.boolean || info.overloadedBoolean) {
      /* Accept `boolean` and `string`. */
      if (
        typeof result === 'string' &&
        (result === '' || normalize(value) === normalize(name))
      ) {
        result = true
      }
    }
  
    return result
  }
docs: /* Parse a single primitives.