I have an object X
with a method getY()
returning an object Y
with a method a()
, in typescript.
What does it mean an expression like this one:
X.getY()!.a()
I guess the !
operator is used to check against null, but how does it work concretely? Where is defined in the language?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…