File manager - Edit - /usr/local/lib/node_modules/bower/lib/node_modules/bower-config/node_modules/mout/number/toInt.js
Back
/** * "Convert" value into an 32-bit integer. * Works like `Math.floor` if val > 0 and `Math.ceil` if val < 0. * IMPORTANT: val will wrap at 2^31 and -2^31. * Perf tests: http://jsperf.com/vs-vs-parseint-bitwise-operators/7 */ function toInt(val){ // we do not use lang/toNumber because of perf and also because it // doesn't break the functionality return ~~val; } module.exports = toInt;
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings