Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
301
const
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
setProps
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected