1 |
|
2 |
|
3 | /**
|
4 | * "Convert" value into a 32-bit unsigned integer.
|
5 | * IMPORTANT: Value will wrap at 2^32.
|
6 | */
|
7 | function toUInt(val){
|
8 | // we do not use lang/toNumber because of perf and also because it
|
9 | // doesn't break the functionality
|
10 | return val >>> 0;
|
11 | }
|
12 |
|
13 | module.exports = toUInt;
|
14 |
|
15 |
|