MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / ensureAssetsDefaults

Function ensureAssetsDefaults

app.js:1842–1850  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1840}
1841
1842function ensureAssetsDefaults() {
1843 if (!Array.isArray(assets)) assets = [];
1844 assets.forEach((a) => {
1845 if (!a) return;
1846 if (!a.id) a.id = "asset_" + Math.random().toString(36).slice(2, 10);
1847 if (!a.kind) a.kind = "image";
1848 if (!a.name) a.name = a.sourceName || a.id;
1849 });
1850}
1851
1852
1853function makeId() {

Callers 4

applyStateSnapshotFunction · 0.85
addIconElementFunction · 0.85
app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected