{"action":"closed","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/896","labels_url":"https://api.github.com/repos/lodash/lodash/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/896/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/896/events","html_url":"https://github.com/lodash/lodash/issues/896","id":55775301,"number":896,"title":"_.chunk returns empty array for sizes larger than array ","user":{"login":"nullrocket","id":906243,"avatar_url":"https://avatars.githubusercontent.com/u/906243?v=3","gravatar_id":"","url":"https://api.github.com/users/nullrocket","html_url":"https://github.com/nullrocket","followers_url":"https://api.github.com/users/nullrocket/followers","following_url":"https://api.github.com/users/nullrocket/following{/other_user}","gists_url":"https://api.github.com/users/nullrocket/gists{/gist_id}","starred_url":"https://api.github.com/users/nullrocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullrocket/subscriptions","organizations_url":"https://api.github.com/users/nullrocket/orgs","repos_url":"https://api.github.com/users/nullrocket/repos","events_url":"https://api.github.com/users/nullrocket/events{/privacy}","received_events_url":"https://api.github.com/users/nullrocket/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-28T16:03:16Z","updated_at":"2015-01-28T16:42:33Z","closed_at":"2015-01-28T16:42:33Z","body":"I would have expected the following to just return the largest chunk it could for myArray if passed a chunk size greater than myArray.length instead of an empty array.\r\n```\r\nvar myArray = [1,2,3,4];\r\nvar chunkedArray = _.chunk(myArray,100);\r\n// => []\r\n```\r\nThis works as I expect\r\n```\r\nvar myArray = [1,2,3,4];\r\nvar chunkedArray = _.chunk(myArray,Math.min(100,myArray.length));\r\n// => [[1,2,3,4]]\r\n\r\n\r\n\r\n\r\n"}}