(input, hint)
| 1245 | } |
| 1246 | |
| 1247 | function _toPrimitive(input, hint) { |
| 1248 | if (typeof input !== "object" || input === null) return input; |
| 1249 | var prim = input[Symbol.toPrimitive]; |
| 1250 | |
| 1251 | if (prim !== undefined) { |
| 1252 | var res = prim.call(input, hint || "default"); |
| 1253 | if (typeof res !== "object") return res; |
| 1254 | throw new TypeError("@@toPrimitive must return a primitive value."); |
| 1255 | } |
| 1256 | |
| 1257 | return (hint === "string" ? String : Number)(input); |
| 1258 | } |
| 1259 | |
| 1260 | function useUncontrolled(props, config) { |
| 1261 | return Object.keys(config).reduce(function (result, fieldName) { |
no outgoing calls
no test coverage detected
searching dependent graphs…