MCPcopy
hub / github.com/preactjs/preact / serialize

Function serialize

test/_util/dom.js:6–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 * @param {Contents} contents
5 */
6const serialize = contents =>
7 Array.isArray(contents) ? contents.join('') : contents.toString();
8
9/**
10 * A helper to generate innerHTML validation strings containing spans

Callers 9

spanFunction · 0.70
divFunction · 0.70
pFunction · 0.70
sectionFunction · 0.70
ulFunction · 0.70
olFunction · 0.70
liFunction · 0.70
h1Function · 0.70
h2Function · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…