main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
268 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var ES5ToInteger = require('../5/ToInteger');
|
---|
| 4 |
|
---|
| 5 | var ToNumber = require('./ToNumber');
|
---|
| 6 |
|
---|
| 7 | // https://262.ecma-international.org/6.0/#sec-tointeger
|
---|
| 8 |
|
---|
| 9 | module.exports = function ToInteger(value) {
|
---|
| 10 | var number = ToNumber(value);
|
---|
| 11 | return ES5ToInteger(number);
|
---|
| 12 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.