Let say
:
myVariable.color;
myVariable.height;
myVariable.width;
But
sometimes, myVariable only have "color" and "height"
property.
I have try this, but no luck
:
if(myVariable.width ==
undefined) {
//but not filtered
here
}
How
to know if myVariable doesn't contain "width" property by code, is it possible
?
No comments:
Post a Comment