{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/jquery/issues/2627","labels_url":"https://api.github.com/repos/jquery/jquery/issues/2627/labels{/name}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/2627/comments","events_url":"https://api.github.com/repos/jquery/jquery/issues/2627/events","html_url":"https://github.com/jquery/jquery/pull/2627","id":109582784,"number":2627,"title":"Core: Support Symbol wrapper objects in jQuery.type","user":{"login":"ChristianGrete","id":8916907,"avatar_url":"https://avatars.githubusercontent.com/u/8916907?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianGrete","html_url":"https://github.com/ChristianGrete","followers_url":"https://api.github.com/users/ChristianGrete/followers","following_url":"https://api.github.com/users/ChristianGrete/following{/other_user}","gists_url":"https://api.github.com/users/ChristianGrete/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianGrete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianGrete/subscriptions","organizations_url":"https://api.github.com/users/ChristianGrete/orgs","repos_url":"https://api.github.com/users/ChristianGrete/repos","events_url":"https://api.github.com/users/ChristianGrete/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianGrete/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jquery/jquery/labels/CLA:%20Valid","name":"CLA: Valid","color":"007700"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-10-02T22:31:30Z","updated_at":"2015-10-12T15:21:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jquery/jquery/pulls/2627","html_url":"https://github.com/jquery/jquery/pull/2627","diff_url":"https://github.com/jquery/jquery/pull/2627.diff","patch_url":"https://github.com/jquery/jquery/pull/2627.patch"},"body":"In ECMAScript 2015 (ES6), the native `typeof` operator returns `\"symbol\"`\r\nfor `Symbol` primitives. As it is possible to wrap symbols using the\r\n`Object` constructor, symbols can be objects as well as any other\r\nprimitive type in JavaScript and should be determined by `jQuery.type`."},"comment":{"url":"https://api.github.com/repos/jquery/jquery/issues/comments/147433857","html_url":"https://github.com/jquery/jquery/pull/2627#issuecomment-147433857","issue_url":"https://api.github.com/repos/jquery/jquery/issues/2627","id":147433857,"user":{"login":"mzgol","id":1758366,"avatar_url":"https://avatars.githubusercontent.com/u/1758366?v=3","gravatar_id":"","url":"https://api.github.com/users/mzgol","html_url":"https://github.com/mzgol","followers_url":"https://api.github.com/users/mzgol/followers","following_url":"https://api.github.com/users/mzgol/following{/other_user}","gists_url":"https://api.github.com/users/mzgol/gists{/gist_id}","starred_url":"https://api.github.com/users/mzgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzgol/subscriptions","organizations_url":"https://api.github.com/users/mzgol/orgs","repos_url":"https://api.github.com/users/mzgol/repos","events_url":"https://api.github.com/users/mzgol/events{/privacy}","received_events_url":"https://api.github.com/users/mzgol/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T15:21:56Z","updated_at":"2015-10-12T15:21:56Z","body":"I won't be 100% sure if it works before I test it. ;) That said, this reminded me that unless you enable the non-default [es6.spec-symbols transformer](http://babeljs.io/docs/advanced/transformers/es6/spec-symbols/) typeof isn't shimmed by Babel so for the majority of users `typeof symbol` will return `object`; try e.g. [this code](http://babeljs.io/repl/#?experimental=false&evaluate=true&loose=false&spec=false&playground=false&code=console.log(typeof%20Symbol())%3B%0A) in IE11."}}