(value, object)
| 74 | }; |
| 75 | |
| 76 | const castPath = function (value, object) { |
| 77 | if (Array.isArray(value)) { |
| 78 | return value; |
| 79 | } else { |
| 80 | return isKey(value, object) ? [value] : stringToPath(value); |
| 81 | } |
| 82 | }; |
| 83 | |
| 84 | const toKey = function (value) { |
| 85 | if (typeof value === "string" || isSymbol(value)) return value; |
no test coverage detected