This file contains hidden or 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
//Filter Array for Unique Values JavaScript Snippet | |
const array = [1, 1, 2, 2, 3, 3, 5, 5, 1, 4] | |
const uniqueArray = [...new Set(array)]; | |
console.log(uniqueArray); | |
// Result: [1, 2, 3, 5, 4] | |
// works for arrays containing primitive types: undefined, null, boolean, string and number |
This file contains hidden or 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
Test-NetConnection -Port 9200 -ComputerName Name |
This file contains hidden or 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
Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression; | |
choco install vim | |