(result: Record<string, v[]>, k: string, value: v)
| 81 | error.propString ?? stringifyPath(error.path) |
| 82 | |
| 83 | const addEntry = <v>(result: Record<string, v[]>, k: string, value: v) => { |
| 84 | if (hasOwn(result, k)) result[k].push(value) |
| 85 | else defineEntry(result, k, [value]) |
| 86 | } |
| 87 | |
| 88 | // defined, since assigning a path "__proto__" would set the prototype |
| 89 | const defineEntry = (result: object, k: string, value: unknown) => |
no test coverage detected