⚠ textHasClosing()
Wrapper.prototype.textHasClosing()
Wrapper.prototype.textHasClosing()public textHasClosing(text: string): boolean {
return (
isStringType(text) && text.slice(-this.closing.length) === this.closing
);
}Parameters
Name: type
Description
Returns
Example usage
// Example usage.
import { Wrapper } from '@angular-package/wrapper';
// Returns true of boolean.
new Wrapper(`[`, `]`).textHasClosing(`[quote]`);
// Returns false of boolean.
new Wrapper(`{{`, `}}`).textHasClosing(`{{variable`);Last updated