{"action":"created","issue":{"url":"https://api.github.com/repos/tc39/proposal-flatMap/issues/56","repository_url":"https://api.github.com/repos/tc39/proposal-flatMap","labels_url":"https://api.github.com/repos/tc39/proposal-flatMap/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/tc39/proposal-flatMap/issues/56/comments","events_url":"https://api.github.com/repos/tc39/proposal-flatMap/issues/56/events","html_url":"https://github.com/tc39/proposal-flatMap/pull/56","id":302928156,"number":56,"title":"rename flatten to smoosh","user":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars1.githubusercontent.com/u/218840?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-03-07T01:12:26Z","updated_at":"2018-03-07T06:54:04Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/tc39/proposal-flatMap/pulls/56","html_url":"https://github.com/tc39/proposal-flatMap/pull/56","diff_url":"https://github.com/tc39/proposal-flatMap/pull/56.diff","patch_url":"https://github.com/tc39/proposal-flatMap/pull/56.patch"},"body":"As reported in [Bugzilla bug 1443630](https://bugzilla.mozilla.org/show_bug.cgi?id=1443630), 8+year old versions of MooTools conditionally define an incompatible version of `Array.prototype.flatten`. See [mootools/mootools-core/Source/Core/Core.js](https://github.com/mootools/mootools-core/blame/604a893ca91865d3af5875459afee366ecc5b21c/Source/Core/Core.js#L52) for the responsible code. In an attempt to turn a negative situation into a positive one, I am taking this opportunity to rename `flatten` to `smoosh`.\r\n\r\n![bunnies](https://media.giphy.com/media/1VKi2xud4qsrS/giphy.gif)"},"comment":{"url":"https://api.github.com/repos/tc39/proposal-flatMap/issues/comments/371041939","html_url":"https://github.com/tc39/proposal-flatMap/pull/56#issuecomment-371041939","issue_url":"https://api.github.com/repos/tc39/proposal-flatMap/issues/56","id":371041939,"user":{"login":"zloirock","id":2213682,"avatar_url":"https://avatars0.githubusercontent.com/u/2213682?v=4","gravatar_id":"","url":"https://api.github.com/users/zloirock","html_url":"https://github.com/zloirock","followers_url":"https://api.github.com/users/zloirock/followers","following_url":"https://api.github.com/users/zloirock/following{/other_user}","gists_url":"https://api.github.com/users/zloirock/gists{/gist_id}","starred_url":"https://api.github.com/users/zloirock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zloirock/subscriptions","organizations_url":"https://api.github.com/users/zloirock/orgs","repos_url":"https://api.github.com/users/zloirock/repos","events_url":"https://api.github.com/users/zloirock/events{/privacy}","received_events_url":"https://api.github.com/users/zloirock/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T06:54:04Z","updated_at":"2018-03-07T06:54:04Z","author_association":"NONE","body":"@Haroenv for this case, we already have bind syntax:\r\n```js\r\nimport flatten from 'Array';\r\n\r\narray::flatten();\r\n```\r\nbut it's not very convenient. Real prototype method without any imports / extensions much better."}}
{"actor":{"display_login":"zloirock"}}