(properties: Properties)
| 414 | } |
| 415 | |
| 416 | export function propertiesToChunks(properties: Properties): Chunk[] { |
| 417 | /** |
| 418 | The reverse transformation to that done by transformProperties |
| 419 | **/ |
| 420 | return Object.values(properties).map((prop) => ({ |
| 421 | path: prop.path, |
| 422 | data: prop.data, |
| 423 | })); |
| 424 | } |
| 425 | |
| 426 | export function swapKeysValues(json: { [key: string]: string }) { |
| 427 | const keyValCount = Object.keys(json).length; |
no outgoing calls
no test coverage detected