(array: T[])
| 51 | } |
| 52 | |
| 53 | export const unwrapArray = <T>(array: T[]): T | T[] => { |
| 54 | if (array.length === 1) { |
| 55 | return array[0]! |
| 56 | } |
| 57 | |
| 58 | return array |
| 59 | } |
| 60 | |
| 61 | export const unquote = (str: string) => { |
| 62 | if (str.startsWith('"') && str.endsWith('"')) return str.slice(1, -1) |
nothing calls this directly
no outgoing calls
no test coverage detected