ToInt32.js 173 B

123456789
  1. 'use strict';
  2. var ToNumber = require('./ToNumber');
  3. // http://262.ecma-international.org/5.1/#sec-9.5
  4. module.exports = function ToInt32(x) {
  5. return ToNumber(x) >> 0;
  6. };