math-trunc

ES6 Math.trunc() ponyfill

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
math-trunc
801.0.18 years ago9 years agoMinified + gzip package size for math-trunc in KB

Readme

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