Open mattlub opened 6 years ago
there is a better string method for doingx.indexOf(...) !== -1
x.indexOf(...) !== -1
https://github.com/tyeung2017/sunsetly/blob/master/src/router.js#L8
Is this what you meant? If not, please let me know kindly. Thanks !
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/includes
there is a better string method for doing
x.indexOf(...) !== -1
https://github.com/tyeung2017/sunsetly/blob/master/src/router.js#L8