unwrap()

Wrapper.prototype.unwrap()

Returns the text without the opening and closing chars.

wrapper.class.ts
public unwrap(): Text {
  return this.text;
}

Returns

The return value is the text of a generic type variable Text.

Example usage

// Example usage.wrapper
import { Wrapper } from '@angular-package/wrapper';

const longText = new Wrapper('{', '}', '{This is a long text}');

// Returns {This is a long text}.
longText.unwrap();

Last updated