(key)
| 104 | } |
| 105 | |
| 106 | function formatJsonPathKey(key) { |
| 107 | return /^[A-Za-z_$][\w$]*$/.test(key) |
| 108 | ? `.${key}` |
| 109 | : `[${JSON.stringify(key)}]`; |
| 110 | } |
| 111 | |
| 112 | function addLimited(list, value, limit = 18) { |
| 113 | if (value && list.length < limit && !list.includes(value)) { |
no outgoing calls
no test coverage detected