static isWrapper()
Wrapper.isWrapper()
Wrapper.isWrapper()public static isWrapper<
Opening extends string,
Closing extends string,
Text extends string = string
>(
value: any,
opening?: Opening,
closing?: Closing,
text?: Text
): value is Wrapper<Opening, Text, Closing> {
return (
typeof value === 'object' &&
value instanceof this &&
super.isWrap(value, opening, closing, text)
);
}Generic type variables
Parameters
value:any
value:anyReturn type
Returns
Example usage
Returns true
trueReturn false
falseConfirms the wrong type
Last updated