Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Javascript String.asInteger()

DZone's Guide to

Javascript String.asInteger()

·
Free Resource
Adds asInteger function to string object


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

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}