(obj?: any)
| 58 | * @param {Object} [obj] - init object, optional |
| 59 | */ |
| 60 | export function map(obj?: any): Record<string, any> { |
| 61 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment |
| 62 | // @ts-ignore |
| 63 | const newObj = new EmptyObject() as Record<string, any>; |
| 64 | if (!obj) { |
| 65 | return newObj; |
| 66 | } |
| 67 | |
| 68 | for (const key in obj) { |
| 69 | newObj[key] = obj[key]; |
| 70 | } |
| 71 | return newObj; |
| 72 | } |
nothing calls this directly
no outgoing calls
no test coverage detected