Test case name | Result |
---|---|
unique by map, extract with deconstruct | |
obj UniqueBy, extract with for...in loop | |
obj UniqueBy, extract with Object.values() | |
unique by map, extract with ArrayFrom | |
bad uniqueBy, reducer has an array deconstructor |
Test name | Executions per second |
---|---|
unique by map, extract with deconstruct | 110758.2 Ops/sec |
obj UniqueBy, extract with for...in loop | 12161.0 Ops/sec |
obj UniqueBy, extract with Object.values() | 12216.4 Ops/sec |
unique by map, extract with ArrayFrom | 79450.8 Ops/sec |
bad uniqueBy, reducer has an array deconstructor | 44945.5 Ops/sec |