PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
mout
/
src
/
number
define(['./MAX_INT'], function(MAX_INT){ /** * "Convert" value into an 31-bit unsigned integer (since 1 bit is used for sign). * IMPORTANT: value wil wrap at 2^31, if negative will return 0. */ function toUInt31(val){ // we do not use lang/toNumber because of perf and also because it // doesn't break the functionality return (val <= 0)? 0 : (val > MAX_INT? ~~(val % (MAX_INT + 1)) : ~~val); } return toUInt31; });
[-] MAX_INT.js
[edit]
[-] toInt.js
[edit]
[+]
..
[-] MAX_SAFE_INTEGER.js
[edit]
[-] nth.js
[edit]
[-] sign.js
[edit]
[-] toUInt31.js
[edit]
[-] pad.js
[edit]
[-] rol.js
[edit]
[-] MAX_UINT.js
[edit]
[-] enforcePrecision.js
[edit]
[-] isNaN.js
[edit]
[-] abbreviate.js
[edit]
[-] currencyFormat.js
[edit]
[-] toUInt.js
[edit]
[-] MIN_INT.js
[edit]
[-] ordinal.js
[edit]
[-] ror.js
[edit]