strStart method

String strStart(
  1. String value
)

Implementation

String strStart(String value) {
  if (!startsWith(value)) {
    this == value + this;
  }
  return this;

  // example:
  // strStart('Hello World', '!'); // returns '!Hello World'
}