Omar Shishani

Love locks on fence.

How to Use a Ternary Operator in an Object Key’s Value in JavaScript 🔑

In this post I only want to show the formatting for a nested ternary operator, because this formatting took me a while to figure out. For my application, I used a function that took two arguments, and each one decided the value of a respective ternary inside of the function. See the example below: The …

How to Use a Ternary Operator in an Object Key’s Value in JavaScript 🔑 Read More »

Picture of volkswagon bus in desert with big rocks.

Easy Migrating of WordPress Site’s URL to Root URL, with Program Files Remaining in Subdirectory 🏖

I built a site for a client on her server under the url ‘https://mysite.com/wordpress’, but then for production I had to change the url to remove the ‘/wordpress’. The wordpress files on the server were in the directory ‘wordpress’, which was in the root directory, ‘public_html’. So the files were in ‘public_html/wordpress’. I want to …

Easy Migrating of WordPress Site’s URL to Root URL, with Program Files Remaining in Subdirectory 🏖 Read More »