source: frontend/node_modules/es-abstract/2020/floor.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 287 bytes
Line 
1'use strict';
2
3// var modulo = require('./modulo');
4var $floor = require('math-intrinsics/floor');
5
6// http://262.ecma-international.org/11.0/#eqn-floor
7
8module.exports = function floor(x) {
9 // return x - modulo(x, 1);
10 if (typeof x === 'bigint') {
11 return x;
12 }
13 return $floor(x);
14};
Note: See TracBrowser for help on using the repository browser.