{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1968","repository_url":"https://api.github.com/repos/lodash/lodash","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1968/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1968/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1968/events","html_url":"https://github.com/lodash/lodash/issues/1968","id":132552998,"number":1968,"title":"_.delta","user":{"login":"pashasadri","id":3045336,"avatar_url":"https://avatars.githubusercontent.com/u/3045336?v=3","gravatar_id":"","url":"https://api.github.com/users/pashasadri","html_url":"https://github.com/pashasadri","followers_url":"https://api.github.com/users/pashasadri/followers","following_url":"https://api.github.com/users/pashasadri/following{/other_user}","gists_url":"https://api.github.com/users/pashasadri/gists{/gist_id}","starred_url":"https://api.github.com/users/pashasadri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pashasadri/subscriptions","organizations_url":"https://api.github.com/users/pashasadri/orgs","repos_url":"https://api.github.com/users/pashasadri/repos","events_url":"https://api.github.com/users/pashasadri/events{/privacy}","received_events_url":"https://api.github.com/users/pashasadri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/lodash/lodash/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-09T22:20:31Z","updated_at":"2016-02-10T01:28:14Z","closed_at":"2016-02-10T00:08:36Z","body":"how about a delta function\r\n\r\n`_.delta(arrayA, arrayB, addCallback, delCallback)`\r\n\r\ncompute additions and deletion between two arrays.\r\n\r\na = [1, 2, 3]\r\nb = [3, 4, 5]\r\n\r\nadds = [4, 5]\r\ndels = [1, 2]\r\n\r\nexample usage: \r\n\r\nImagine a multiple selection list scenario.  The selection list can change by addition or removal of items.  On each change, you want to add event listeners to newly added items, and remove previously added listeners from the ones no longer in the list.\r\n"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/182159791","html_url":"https://github.com/lodash/lodash/issues/1968#issuecomment-182159791","issue_url":"https://api.github.com/repos/lodash/lodash/issues/1968","id":182159791,"user":{"login":"pashasadri","id":3045336,"avatar_url":"https://avatars.githubusercontent.com/u/3045336?v=3","gravatar_id":"","url":"https://api.github.com/users/pashasadri","html_url":"https://github.com/pashasadri","followers_url":"https://api.github.com/users/pashasadri/followers","following_url":"https://api.github.com/users/pashasadri/following{/other_user}","gists_url":"https://api.github.com/users/pashasadri/gists{/gist_id}","starred_url":"https://api.github.com/users/pashasadri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pashasadri/subscriptions","organizations_url":"https://api.github.com/users/pashasadri/orgs","repos_url":"https://api.github.com/users/pashasadri/repos","events_url":"https://api.github.com/users/pashasadri/events{/privacy}","received_events_url":"https://api.github.com/users/pashasadri/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T01:28:14Z","updated_at":"2016-02-10T01:28:14Z","body":"Thanks for the consideration.  I'll use two invocations of _.difference."}}