{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1930","repository_url":"https://api.github.com/repos/lodash/lodash","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1930/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1930/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1930/events","html_url":"https://github.com/lodash/lodash/issues/1930","id":130821310,"number":1930,"title":"Add _.trunc (Math.trunc) ","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T21:23:23Z","updated_at":"2016-02-02T21:25:58Z","closed_at":"2016-02-02T21:25:58Z","body":"Is there a reason [`Math.trunc()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc) is not available as `_.trunc` under Math?\r\n\r\nThe [implementation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc#Polyfill) is straightforward:\r\n\r\n```js\r\nMath.trunc = Math.trunc || function(x) {\r\n  return x < 0 ? Math.ceil(x) : Math.floor(x);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/178829660","html_url":"https://github.com/lodash/lodash/issues/1930#issuecomment-178829660","issue_url":"https://api.github.com/repos/lodash/lodash/issues/1930","id":178829660,"user":{"login":"jdalton","id":4303,"avatar_url":"https://avatars.githubusercontent.com/u/4303?v=3","gravatar_id":"","url":"https://api.github.com/users/jdalton","html_url":"https://github.com/jdalton","followers_url":"https://api.github.com/users/jdalton/followers","following_url":"https://api.github.com/users/jdalton/following{/other_user}","gists_url":"https://api.github.com/users/jdalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jdalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdalton/subscriptions","organizations_url":"https://api.github.com/users/jdalton/orgs","repos_url":"https://api.github.com/users/jdalton/repos","events_url":"https://api.github.com/users/jdalton/events{/privacy}","received_events_url":"https://api.github.com/users/jdalton/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T21:25:58Z","updated_at":"2016-02-02T21:25:58Z","body":"I renamed String to `_.truncate` on the off chance that we'd add it. As with other requests let's see if there's user demand before adding to core : D"}}