Buckets:
| import getWindow from './isWindow'; | |
| import offset from './offset'; | |
| /** | |
| * Returns the height of a given element. | |
| * | |
| * @param node the element | |
| * @param client whether to use `clientHeight` if possible | |
| */ | |
| export default function height(node, client) { | |
| var win = getWindow(node); | |
| return win ? win.innerHeight : client ? node.clientHeight : offset(node).height; | |
| } |
Xet Storage Details
- Size:
- 368 Bytes
- Xet hash:
- b0b8062ee376efc03350da53b1201713ae4a992b5dcb631c78d1c5decf41c2a6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.