| 523 | } |
| 524 | |
| 525 | export const printObjectProperties = obj => { |
| 526 | if (typeof obj !== 'object' || obj === null) { |
| 527 | return obj |
| 528 | } |
| 529 | |
| 530 | let result = '' |
| 531 | for (const [key, value] of Object.entries(obj)) { |
| 532 | result += `${key}: "${value}"; ` |
| 533 | } |
| 534 | |
| 535 | return `{${result}}` |
| 536 | } |
| 537 | |
| 538 | export const normalizeSpacesInString = string => { |
| 539 | return string.replace(/\s+/g, ' ') |