Skip to content
This repository has been archived by the owner on Jun 5, 2022. It is now read-only.

Add trunc, with a polyfill for browsers that don't support it. #12

Merged
merged 1 commit into from
Apr 13, 2016
Merged

Conversation

rgrempel
Copy link
Contributor

Of course, you can implement this in plain-old-purescript, but it's likely that the native browser method is faster, when available. And I've included a polyfill for cases where it's not available (mainly IE, according to this page)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc

@rgrempel
Copy link
Contributor Author

I re-pushed the commit with a small whitespace change -- jscs was otherwise complaining about whitespace.

@garyb
Copy link
Member

garyb commented Apr 13, 2016

Thanks!

@garyb garyb merged commit 7ebeae0 into purescript-deprecated:master Apr 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants