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

Is Integer Value

DZone's Guide to

Is Integer Value

· ·
Free Resource
// Nota : Rafael Trindade da Silva - Mantus Deus Estrusco do Inferno
// Email : rafaeltds at gmail dot comfunction isInteger(s) {
  if (s == "") return;
	for (i = 0 ; i < s.length ; i++) {
  	if ((s.charAt(i) < '0') || (s.charAt(i) > '9'))	return false
	}
	return true;
}
Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}