(value, object)
| 36 | }; |
| 37 | |
| 38 | const isKey = function (value, object) { |
| 39 | if (Array.isArray(value)) { |
| 40 | return false; |
| 41 | } |
| 42 | const type = typeof value; |
| 43 | if ( |
| 44 | type === "number" || |
| 45 | type === "symbol" || |
| 46 | type === "boolean" || |
| 47 | !value || |
| 48 | isSymbol(value) |
| 49 | ) { |
| 50 | return true; |
| 51 | } |
| 52 | return ( |
| 53 | reIsPlainProp.test(value) || |
| 54 | !reIsDeepProp.test(value) || |
| 55 | (object != null && value in Object(object)) |
| 56 | ); |
| 57 | }; |
| 58 | |
| 59 | const stringToPath = function (string) { |
| 60 | const result = []; |