Test name | Executions per second |
---|---|
Tertiary | 6503661.0 Ops/sec |
Or | 6485567.5 Ops/sec |
var obj = {
titlePlural:"red"
}
var obj2 ={
title:"red"
}
let title2 = obj2.titlePlural ? obj2.titlePlural : obj2.title
let title2 = obj2.titlePlural ||obj2.title