Over a million developers have joined DZone.

Javascript String.asInteger()

·
Adds asInteger function to string object


String.prototype.asInteger = function() { return parseInt(this, 10); }
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}