We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bee1d6 commit 283c8d6Copy full SHA for 283c8d6
1 file changed
dial9-viewer/ui/test_all_skills_snippets.js
@@ -252,8 +252,10 @@ async function main() {
252
function toSkeleton(val) {
253
if (val === null || val === undefined) return '_null_';
254
if (val instanceof Map) {
255
- const first = val.values().next().value;
256
- return { '_map_': first !== undefined ? toSkeleton(first) : '_empty_' };
+ let rep;
+ for (const v of val.values()) { if (!Array.isArray(v)) { rep = v; break; } }
257
+ if (rep === undefined) rep = val.values().next().value;
258
+ return { '_map_': rep !== undefined ? toSkeleton(rep) : '_empty_' };
259
}
260
if (typeof val === 'object' && typeof val.percentile === 'function') return 'Histogram';
261
if (Array.isArray(val)) {
0 commit comments