Tutorialsplane

Vue.Js string endsWith


Vue.Js string endsWith We can use native JavaScript method endsWith to check whether a string ends with the specified string or character. Here in this tutorial, we are going to explain how you can check whether a string ends with specified character or not.


Vue.Js string endsWith Example

You can check whether an string ends with specified chars/string simply as below-

Example:




 


<div id="app">
	{{result}}
</div>
     


Try it ยป

Output of above example-