tryAdd

tryAdd(value: MemberType): Boolean abstract, lockReceiver, updating;

The tryAdd method of the Array class attempts to add the value specified by the value parameter to the array if it is not already present. It returns true if the value was successfully added; otherwise it returns false.

2020.0.01 and higher