This week I learned that you can assign object properties to String variables in JavaScript! Eg, instead of doing "object.name = name" you can do
"let var = 'name';
object[var] = name"
and it'll result in the same thing! Obviously this example is kind of useless but I used this information to basically make an easier-to-assign-to map out of an object with user-defined file names as keys!
I'm a fan of Open Source and have a growing interest in serverless and edge computing. I'm not a big fan of spiders, but they're doing good work eating bugs. I also stream on Twitch.
This week I learned that you can assign object properties to String variables in JavaScript! Eg, instead of doing "object.name = name" you can do
"let var = 'name';
object[var] = name"
and it'll result in the same thing! Obviously this example is kind of useless but I used this information to basically make an easier-to-assign-to map out of an object with user-defined file names as keys!