- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
15 lines
287 B
JavaScript
15 lines
287 B
JavaScript
'use strict';
|
|
|
|
// var modulo = require('./modulo');
|
|
var $floor = require('math-intrinsics/floor');
|
|
|
|
// http://262.ecma-international.org/11.0/#eqn-floor
|
|
|
|
module.exports = function floor(x) {
|
|
// return x - modulo(x, 1);
|
|
if (typeof x === 'bigint') {
|
|
return x;
|
|
}
|
|
return $floor(x);
|
|
};
|