Test name | Executions per second |
---|---|
Tertiary | 8685567.0 Ops/sec |
Or | 8225333.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