{"action":"created","issue":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/694","labels_url":"https://api.github.com/repos/visionmedia/superagent/issues/694/labels{/name}","comments_url":"https://api.github.com/repos/visionmedia/superagent/issues/694/comments","events_url":"https://api.github.com/repos/visionmedia/superagent/issues/694/events","html_url":"https://github.com/visionmedia/superagent/issues/694","id":93125140,"number":694,"title":"A lot of web developers don't use Node","user":{"login":"jugimaster","id":7930645,"avatar_url":"https://avatars.githubusercontent.com/u/7930645?v=3","gravatar_id":"","url":"https://api.github.com/users/jugimaster","html_url":"https://github.com/jugimaster","followers_url":"https://api.github.com/users/jugimaster/followers","following_url":"https://api.github.com/users/jugimaster/following{/other_user}","gists_url":"https://api.github.com/users/jugimaster/gists{/gist_id}","starred_url":"https://api.github.com/users/jugimaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugimaster/subscriptions","organizations_url":"https://api.github.com/users/jugimaster/orgs","repos_url":"https://api.github.com/users/jugimaster/repos","events_url":"https://api.github.com/users/jugimaster/events{/privacy}","received_events_url":"https://api.github.com/users/jugimaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-05T16:41:05Z","updated_at":"2015-07-16T09:11:46Z","closed_at":null,"body":"For example, I've never used Node for a project.\r\n\r\nThe problem here is that there's no plain JavaScript \"distribution\" of Superagent - a file I could download and set up in my browser to start using it.\r\n\r\nI figured Superagent looked like a decent library, so I even tried this \"Browserify\" thing, which seems like something meant for this specific situation. Apparently this is a widespread problem.\r\n\r\nAnyway, after looking at the Issue list here, I'm left feeling vaguely uncomfortable with using Superagent, or just about any other non-jQuery ajax library out there.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/comments/121891349","html_url":"https://github.com/visionmedia/superagent/issues/694#issuecomment-121891349","issue_url":"https://api.github.com/repos/visionmedia/superagent/issues/694","id":121891349,"user":{"login":"jugimaster","id":7930645,"avatar_url":"https://avatars.githubusercontent.com/u/7930645?v=3","gravatar_id":"","url":"https://api.github.com/users/jugimaster","html_url":"https://github.com/jugimaster","followers_url":"https://api.github.com/users/jugimaster/followers","following_url":"https://api.github.com/users/jugimaster/following{/other_user}","gists_url":"https://api.github.com/users/jugimaster/gists{/gist_id}","starred_url":"https://api.github.com/users/jugimaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugimaster/subscriptions","organizations_url":"https://api.github.com/users/jugimaster/orgs","repos_url":"https://api.github.com/users/jugimaster/repos","events_url":"https://api.github.com/users/jugimaster/events{/privacy}","received_events_url":"https://api.github.com/users/jugimaster/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T09:11:46Z","updated_at":"2015-07-16T09:11:46Z","body":"Thanks, that is roughly what I was looking for!\r\n\r\nWell, it's easier for me to fire off a couple of comments here than to set up a local repo and scrape together a pull request, so.. here goes.\r\n\r\nYou might want to adjust the ```isObject``` method a bit though, because the current version returns true for ```Arrays``` too. \r\n\r\nInstead, you could do something like: \r\n```javascript\r\nfunction isObject(obj) {\r\n  return obj === Object(obj) && !(obj instanceof Array) && !(obj instanceof Node);\r\n}\r\n```\r\n\r\nYou could also start using strict equality comparisons: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness\r\n\r\n"}}