MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / printObjectProperties

Function printObjectProperties

lib/utils.js:525–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525export 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
538export const normalizeSpacesInString = string => {
539 return string.replace(/\s+/g, ' ')

Callers 1

catchFunction · 0.90

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected