Skip to navigation
Python's startswith equivalent for javascript
20.12.13
add a prototype if (typeof String.prototype.startsWith != 'function') { String.prototype.startsWith = function (str) { return this.indexOf(str) == 0; }; } use like: console.log('hello dude'.startsWith('hello'));
http://stackoverflow.com/questions/646628/javascript-startswith
Reply
Anonymous
Information Epoch 1714229852
Using text data files.
Home
Notebook
Contact us