Here is my code:
interface Node{
prop1?:string,
prop2?:number,
//many more optional properties
}
I have many objects of this interface.
Should I replace the optional properties with nullable ones to get better performance from the hidden class feature of JavaScript? For example:
interface Node{
prop1: string|null,
prop2 :number|null,
//many more nullable properties
}