{"comment":{"url":"https://api.github.com/repos/Planeshifter/ode-euler/comments/14916961","html_url":"https://github.com/Planeshifter/ode-euler/commit/c37555bcf35470e29c4cb6d9aed0c80d84e9b09d#commitcomment-14916961","id":14916961,"user":{"login":"Planeshifter","id":1913638,"avatar_url":"https://avatars.githubusercontent.com/u/1913638?v=3","gravatar_id":"","url":"https://api.github.com/users/Planeshifter","html_url":"https://github.com/Planeshifter","followers_url":"https://api.github.com/users/Planeshifter/followers","following_url":"https://api.github.com/users/Planeshifter/following{/other_user}","gists_url":"https://api.github.com/users/Planeshifter/gists{/gist_id}","starred_url":"https://api.github.com/users/Planeshifter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Planeshifter/subscriptions","organizations_url":"https://api.github.com/users/Planeshifter/orgs","repos_url":"https://api.github.com/users/Planeshifter/repos","events_url":"https://api.github.com/users/Planeshifter/events{/privacy}","received_events_url":"https://api.github.com/users/Planeshifter/received_events","type":"User","site_admin":false},"position":41,"line":7,"path":"lib/index.js","commit_id":"c37555bcf35470e29c4cb6d9aed0c80d84e9b09d","created_at":"2015-12-11T03:27:44Z","updated_at":"2015-12-11T03:27:44Z","body":"The `validate-io-number` module uses the check \r\n\r\n``` javascript\r\n( typeof value === 'number' || Object.prototype.toString.call( value ) === '[object Number]' ) && value.valueOf() === value.valueOf();\r\n````\r\nwhich can be used for both number primitives and number objects, i.e. results from a call like `new Number(3)`. In contrast, the `validate.io-number-primitive` module just checks\r\n\r\n``` javascript\r\n(typeof value === 'number') && (value === value);\r\n``` \r\nwhich is much faster, but won't return `true` for number objects. Due to performance reasons, we have decided to generally go with the `primitive` versions of the validation modules, unless there is a rationale to deviate from that. "}}