Static methods
The static methods of `Wrap` the string object.
Public
Wrap.hasClosing()
Wrap.hasClosing()public static hasClosing(text: string, closing: string): boolean {
return (
isStringLength(text, { min: 1 }) &&
isStringLength(closing, { min: 1 }) &&
text.slice(-closing.length) === closing
);
}
Parameters
Name: type
Description
Returns
Functions used
Example usage
Wrap.hasOpening()
Wrap.hasOpening()Parameters
Name: type
Description
Returns
Functions used
Example usage
Wrap.isWrap()
Wrap.isWrap()Generic type variables
Parameters
Name: type
Description
Returns
Return type
Functions used
Example usage
Last updated