v1
9/9/2020 by tkdodo -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const array = Array.from({ length: 10000 }, (_, index) => index)

const iteratee = (element) => [String(element), element * 2]
delete caserun single casemove downdrag and drop case


ready



array.reduce((result, element, index) => {
    const [key, value] = iteratee(element, index, array)
    result[key] = value
    return result
}, {})
delete caserun single casemove updrag and drop case


ready



array.reduce((result, element, index) => {
    const [key, value] = iteratee(element, index, array)
    return {
        ...result,
        [key]: value,
    }
}, {})
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