Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to find out what a string ends with in javascript

function isJS(path) {
	return /jsx?$/.test(path)
}
Source by edabit.com #
 
PREVIOUS NEXT
Tagged: #find #string #ends #javascript
ADD COMMENT
Topic
Name
8+1 =