isWrapped()
Wrap.prototype.isWrapped()
public isWrapped(
opening: string = this.#opening,
closing: string = this.#closing
): boolean {
return this.hasOpening(opening) && this.hasClosing(closing);
}Parameters
opening: string = this.#opening
closing: string = this.#closing
Returns
Example usage
Basic
Given opening
Given closing
Given opening and closing chars
Last updated