MCPcopy Create free account
hub / github.com/Lobos/react-ui / tryParseInt

Function tryParseInt

src/utils/dom.js:3–9  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

1'use strict';
2
3function tryParseInt(p) {
4 if (!p) {
5 return 0;
6 }
7 const pi = parseInt(p);
8 return pi || 0;
9}
10
11export function isDescendant (parent, child) {
12 let node = child.parentNode;

Callers 1

getOuterHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…