MCPcopy Index your code
hub / github.com/electerious/basicScroll / mapDirectToProperty

Function mapDirectToProperty

src/scripts/main.js:117–124  ·  view source on GitHub ↗
(direct, properties)

Source from the content-addressed store, hash-verified

115 * @returns {*}
116 */
117const mapDirectToProperty = function(direct, properties) {
118
119 if (direct === true) return properties.elem
120 if (direct instanceof HTMLElement === true) return properties.direct
121
122 return properties.global
123
124}
125
126/**
127 * Converts a relative value to an absolute value.

Callers 1

getPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected