MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / toInteger

Function toInteger

ServerEditorWeb/ace/worker-php.js:6894–6902  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

6892}
6893
6894function toInteger(n) {
6895 n = +n;
6896 if (n !== n) { // isNaN
6897 n = 0;
6898 } else if (n !== 0 && n !== (1/0) && n !== -(1/0)) {
6899 n = (n > 0 || -1) * Math.floor(Math.abs(n));
6900 }
6901 return n;
6902}
6903
6904function isPrimitive(input) {
6905 var type = typeof input;

Callers 1

worker-php.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected