MCPcopy Index your code
hub / github.com/retspen/webvirtcloud / toInteger

Function toInteger

static/js/ace.js:908–916  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

906}
907
908function toInteger(n) {
909 n = +n;
910 if (n !== n) { // isNaN
911 n = 0;
912 } else if (n !== 0 && n !== (1/0) && n !== -(1/0)) {
913 n = (n > 0 || -1) * Math.floor(Math.abs(n));
914 }
915 return n;
916}
917
918function isPrimitive(input) {
919 var type = typeof input;

Callers 1

ace.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected