JSPM

math-trunc

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 572
  • Score
    100M100P100Q108849F
  • License MIT

ES6 Math.trunc() ponyfill

Package Exports

  • math-trunc

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (math-trunc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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