You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let codeLang='Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam';
310
+
let arr = Object
311
+
.keys(obj) // return object's keys as an array
312
+
.map(key => {return [key, obj[key] ]}) // map a function on each array item
313
+
.flat()
314
+
.sort()
315
+
;
316
+
return arr;
317
+
}
318
+
function assertObjectsEqual (actual, expected, testName) {
319
+
let actualStr = JSON.stringify( convertObjectToArray(actual) );
320
+
let expectedStr = JSON.stringify( convertObjectToArray(expected) );
0 commit comments