Everything appears to work as it did previously, but this modification now handles the use case where the declarations variable could have a dash in it (EX: "value:background-color"). Additionally the declarations variable is passed into the function, to ensure it's defined.
This pull request includes the type conversion that happened automatically by creating a function using the function constructor.
Ah another case I don't think I have covered: Having an object passed in splits it irregularly. Playing around with trying to keep the type conversion behind the scenes without an error being thrown.
Everything appears to work as it did previously, but this modification now handles the use case where the declarations variable could have a dash in it (EX: "value:background-color"). Additionally the declarations variable is passed into the function, to ensure it's defined.
This pull request includes the type conversion that happened automatically by creating a function using the function constructor.