4 ms·
I know it's a simple example, but the Maybe class should probably use a null check internally rather than a truthy check, so that types like number and string w
by tubthumper8 3y ago
I know it's a simple example, but the Maybe class should probably use a null check internally rather than a truthy check, so that types like number and string which have falsy values that are nonetheless valid for a use case can be used with Maybe.