SyntaxFix
Write A Post
Hire A Developer
Questions
If you like it short simply use a RegExp:
var streetAddress = /[^,]*/.exec(addy)[0];