Skip to content

kevva/math-trunc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

math-trunc Build Status

ES6 Math.trunc() ponyfill

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

Install

$ npm install math-trunc

Usage

const mathTrunc = require('math-trunc');

mathTrunc(13.37);
//=> 13

mathTrunc(-0.123);
//=> -0

License

MIT © Kevin Mårtensson

About

ES6 Math.trunc() ponyfill

Resources

License

Stars

Watchers

Forks

Packages

No packages published