Created
July 17, 2023 08:40
-
-
Save codeallday31/b354c91a27abf657fc17636cc6bc2380 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function elementSetStyle(element, style) { | |
for (var name in style) { | |
var value = style[name]; | |
if (value == null) value = ""; | |
element.style[name] = value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment