By default, JavaScript has a sort function that takes the form of yourArrayName.sort( ) built-in, but to sort JavaScript arrays ascending and descending, you need a custom compare function to sort numeric values. .sort() will work fine for strings since it sorts by the first character only, so Alpha will come before Beta, but when Read post
{
"@timestamp": "2022-01-29T15:55:40+00:00",
"slug": "/sort-javascript-arrays-ascending-descending",
"post_type": "post",
"@tags": [],
"@categories": [
"All",
"JavaScript"
],
"excerpt": "By default, JavaScript has a sort function that takes the form of yourArrayName.sort( ) built-in, but to sort JavaScript arrays ascending and descending, you need a custom compare function to sort numeric values. .sort() will work fine for strings since it sorts by the first character only, so Alpha will come before Beta, but when […]"
}
So today I learned that Vim is a thing while using SSH to a remote WordPress server, so I thought I’d write about it. Here we go. Are Vi and Vim the same thing? The popular text editor Vim is an implementation that improves upon the original Vi standard. Vim is a text editor that was originally developed to Read post
{
"@timestamp": "2021-12-18T17:14:16+00:00",
"slug": "/introduction-to-vim-and-12-useful-commands",
"post_type": "post",
"@tags": [],
"@categories": [
"All",
"Vim"
],
"excerpt": "So today I learned that Vim is a thing while using SSH to a remote WordPress server, so I thought I’d write about it. Here we go. Are Vi and Vim the same thing? The popular text editor Vim is an implementation that improves upon the original Vi standard. Vim is a text editor that was originally developed to […]"
}
Did you just change domain names and redirect your old domain name to your new domain, but when you try in your browser it’s not reflecting this change? It could be caching, but rather than waste time clearing cache or opening an incognito window, just use cURL. Using this cURL command will show you the Read post
{
"@timestamp": "2021-12-10T16:14:02+00:00",
"slug": "/check-301-redirect-is-working-using-a-curl-command",
"post_type": "post",
"@tags": [],
"@categories": [
"All",
"cURL"
],
"excerpt": "Did you just change domain names and redirect your old domain name to your new domain, but when you try in your browser it’s not reflecting this change? It could be caching, but rather than waste time clearing cache or opening an incognito window, just use cURL. Using this cURL command will show you the […]"
}