source:
node_modules/core-js-pure/internals/to-uint8-clamped.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 161 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 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.