To determine if the object itself is null, one can use (myObj | keyvalue)?.length
. ()
In JavaScript, checking if an object contains only null values can be done with
Object.values(myObj).some(x => x !== null)
.
However, attempting to utilize this in the template results in Parser Error: Bindings cannot contain assignments
.
Is there a method to verify if myObj
exclusively holds null
values within the template, or should a separate function be employed?