Constructs a Maybe value that represents a successful value (a Just).
Constructs a Maybe value that represents a successful value (a Just).
NOTE:
The provided value is stored as-given in the structure. If you want to convert a nullable value (a value that may be null/undefined) to a Maybe value, use theMaybe.fromNullable(value)function instead ofMaybe.of(value).
See the documentation for the Maybe structure to understand how to use this.
of(value) {
    return Just(value);
  }