MCPcopy Index your code
hub / github.com/caseywebdev/react-list / describeLinkForResourceErrorDEV

Function describeLinkForResourceErrorDEV

docs/index.js:38246–38281  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

38244 }
38245 }
38246 function describeLinkForResourceErrorDEV(props) {
38247 var describedProps = 0,
38248 description = "<link";
38249 "string" === typeof props.rel
38250 ? (describedProps++, (description += ' rel="' + props.rel + '"'))
38251 : hasOwnProperty.call(props, "rel") &&
38252 (describedProps++,
38253 (description +=
38254 ' rel="' +
38255 (null === props.rel ? "null" : "invalid type " + typeof props.rel) +
38256 '"'));
38257 "string" === typeof props.href
38258 ? (describedProps++, (description += ' href="' + props.href + '"'))
38259 : hasOwnProperty.call(props, "href") &&
38260 (describedProps++,
38261 (description +=
38262 ' href="' +
38263 (null === props.href
38264 ? "null"
38265 : "invalid type " + typeof props.href) +
38266 '"'));
38267 "string" === typeof props.precedence
38268 ? (describedProps++,
38269 (description += ' precedence="' + props.precedence + '"'))
38270 : hasOwnProperty.call(props, "precedence") &&
38271 (describedProps++,
38272 (description +=
38273 " precedence={" +
38274 (null === props.precedence
38275 ? "null"
38276 : "invalid type " + typeof props.precedence) +
38277 "}"));
38278 Object.getOwnPropertyNames(props).length > describedProps &&
38279 (description += " ...");
38280 return description + " />";
38281 }
38282 function getStyleKey(href) {
38283 return (
38284 'href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"'

Callers 1

getResourceFunction · 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…