v1
7/17/2020 by ygorbunkov -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const randomStr = () => Array
	.from(
		{length: 0|Math.random()*4+3},
		() => String.fromCharCode(0|Math.random()*26+97)
	)
	.join(''),
	src = Array.from(
		{length: 1000},
		() => Array.from(
			{length: 0|Math.random()*5+3},
			() => ({
				[randomStr()]: 0|Math.random()*100,
				[randomStr()]: 0|Math.random()*100
			})
		)
	)
delete caserun single casemove downdrag and drop case


ready



const flatten = arr => 
	arr.flat()
	
	flatten(src)
delete caserun single casemove upmove downdrag and drop case


ready



const flatten = arr => 
	arr.reduce((acc,arr) => (acc.push(...arr), acc), [])
	
	flatten(src)
delete caserun single casemove updrag and drop case


ready



const flatten = arr =>
	arr.reduce((acc,arr) => acc.concat(arr), [])
	
	flatten(src)
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN