how to get string that ends with certain charater js code example
Example: how to find out what a string ends with in javascript
function isJS(path) {
return /jsx?$/.test(path)
}
function isJS(path) {
return /jsx?$/.test(path)
}