I have a variable
var a: [AnyObject? -> Void]
and I am adding data in to it by append method. Now I want to check if the variable is nil or not. I tried using []
but not working and also tried ""
, this also not working, can anyone tell what is the meaning of this variable and how to check if it is nil.