Spread

Benchmark created on


Setup

var foo = {a: 42};

Test runner

Ready to run.

Testing in
TestOps/sec
Empty object
var b = {...foo, ...(false ? {b: 99} : {})}
ready
Undefined
var b = {...foo, ...(false ? {b: 99} : undefined)}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.