Checks if the specified string a ends with the specified string b.
By default the comparison is case sensitive unless specified otherwise by setting the caseInsensitive option to true.
If either string is null or undefined returns false.
Parameters
a: undefined|null|string
String a
b: undefined|null|string
String b
Optionaloptions: {caseInsensitive:boolean}
Options
caseInsensitive: boolean
Whether or not to do a case insensitive or case-sensitive comparison
Checks if the specified string
aends with the specified stringb. By default the comparison is case sensitive unless specified otherwise by setting thecaseInsensitiveoption totrue. If either string is null or undefined returnsfalse.