source: node_modules/ramda-adjunct/lib/internal/ponyfills/Math.trunc.js@ 65b6638

main
Last change on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 552 bytes
RevLine 
[d24f17c]1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _isFinite = _interopRequireDefault(require("../../isFinite"));
6function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
7var truncPonyfill = function truncPonyfill(v) {
8 var numV = Number(v);
9 if (!(0, _isFinite["default"])(numV)) {
10 return numV;
11 }
12
13 // eslint-disable-next-line no-nested-ternary
14 return numV - numV % 1 || (numV < 0 ? -0 : numV === 0 ? numV : 0);
15};
16var _default = truncPonyfill;
17exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.