aswi2020vldc-gitlab/templetes/node_modules/es-abstract/2017/ToInteger.js @ 56f6c6df
1 |
'use strict'; |
---|---|
2 |
|
3 |
var ES5ToInteger = require('../5/ToInteger'); |
4 |
|
5 |
var ToNumber = require('./ToNumber'); |
6 |
|
7 |
// https://www.ecma-international.org/ecma-262/6.0/#sec-tointeger
|
8 |
|
9 |
module.exports = function ToInteger(value) { |
10 |
var number = ToNumber(value); |
11 |
return ES5ToInteger(number); |
12 |
};
|