Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

math-trunc

1.0.1 • Public • Published

math-trunc Build Status

ES6 Math.trunc() ponyfill

Ponyfill: A polyfill that doesn't overwrite the native method

Install

$ npm install --save math-trunc

Usage

var mathTrunc = require('math-trunc');
 
mathTrunc(13.37);
//=> 13
 
mathTrunc(-0.123);
//=> -0

License

MIT © Kevin Mårtensson

install

npm i math-trunc

Downloadsweekly downloads

496

version

1.0.1

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar