Skip to content

Instantly share code, notes, and snippets.

@incompl
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save incompl/6cc9775b5ebb7574a520 to your computer and use it in GitHub Desktop.
Save incompl/6cc9775b5ebb7574a520 to your computer and use it in GitHub Desktop.
// gregParseInt - It's Less Bad™
function gregParseInt(x, y) {
if (y === undefined) {
y = 10;
}
return parseInt(x, y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment