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

Function setProp

src/scripts/main.js:301–305  ·  view source on GitHub ↗
(elem, prop)

Source from the content-addressed store, hash-verified

299 * @param {Object} prop - Object with a key and value.
300 */
301const setProp = function(elem, prop) {
302
303 elem.style.setProperty(prop.key, prop.value)
304
305}
306
307/**
308 * Adds properties to a given style object.

Callers 1

setPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected