math-trunc
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/math-trunc package

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

Package Sidebar

Install

npm i math-trunc

Weekly Downloads

666

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kevva