UNPKG
qtsd-fork
Version:
latest (0.0.2)
0.0.2
0.0.1
Do not use this please
qtsd-fork
/
example
/
node_modules
/
core-js
/
modules
/
_to-integer.js
7 lines
(6 loc)
•
161 B
JavaScript
View Raw
1
2
3
4
5
6
7
// 7.1.4 ToInteger
var
ceil =
Math
.
ceil
;
var
floor =
Math
.
floor
;
module
.
exports
=
function
(
it
) {
return
isNaN
(it = +it) ?
0
: (it >
0
? floor : ceil)(it); };