isSome

Given an optional value, checks if the value is set or ‘some’.

Parameters:

No. Type Comments
1 Optional type Any type marked as optional

Returns: boolean - true if the value is set to a value.

Usages:

  • isSome( v : T ? ) : boolean