suffixIfNot

Adds the specified suffix to this String if it does not already end with it.

Receiver

The original String.

Return

The string with the suffix added if not present.

Parameters

suffix

The suffix to be added if not present.