source:
imaps-frontend/node_modules/core-js/internals/to-uint8-clamped.js
Last change on this file was 79a0317, checked in by , 2 weeks ago | |
---|---|
|
|
File size: 161 bytes |
Rev | Line | |
---|---|---|
[79a0317] | 1 | 'use strict'; |
2 | var round = Math.round; | |
3 | ||
4 | module.exports = function (it) { | |
5 | var value = round(it); | |
6 | return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; | |
7 | }; |
Note:
See TracBrowser
for help on using the repository browser.