(prop)
| 67 | * @returns {string} valid JS property name |
| 68 | */ |
| 69 | const propertyName = (prop) => { |
| 70 | if (SAFE_IDENTIFIER.test(prop) && !RESERVED_IDENTIFIER.has(prop)) { |
| 71 | return prop; |
| 72 | } |
| 73 | return JSON.stringify(prop); |
| 74 | }; |
| 75 | |
| 76 | /** |
| 77 | * Returns chain of property accesses. |
no test coverage detected