Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenEndedGroup/Field2
/ toInteger
Function
toInteger
lib/web/polyfill.js:303–305 ·
view source on GitHub ↗
(it)
Source
from the content-addressed store, hash-verified
301
}
302
// 7.1.4 ToInteger
303
function
toInteger(it){
304
return
isNaN(it) ? 0 : trunc(it);
305
}
306
// 7.1.15 ToLength
307
function
toLength(it){
308
return
it > 0 ? min(toInteger(it), MAX_SAFE_INTEGER) : 0;
Callers
4
toLength
Function · 0.85
toIndex
Function · 0.85
createPointAt
Function · 0.85
polyfill.js
File · 0.85
Calls
2
isNaN
Function · 0.85
trunc
Function · 0.85
Tested by
no test coverage detected