sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
export default function isEmpty<T>(data: T): boolean { | |
if (Array.isArray(data)) return !data.length; | |
if (typeof data === "object" && data !== null) | |
return !Object.keys(data).length; | |
return !data; | |
} |
{ | |
"name": "packages", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"private": true, | |
"scripts": { | |
"start": "concurrently \"wsrun --parallel start\"" | |
}, | |
"workspaces": [ |
# windows bash | |
eval "$(oh-my-posh init bash --config ${POSH_THEMES_PATH}/uew.omp.json)" | |
# macos zsh | |
eval "$(oh-my-posh init zsh --config $(brew --prefix oh-my-posh)/themes/uew.omp.json)" |
html, | |
body, | |
div, | |
span, | |
applet, | |
object, | |
iframe, | |
h1, | |
h2, | |
h3, |
@echo off | |
echo Virtualization must be disabled to use anti-cheat clients like FACEIT and ESEA | |
echo. | |
net session >nul 2>&1 | |
if %ERRORLEVEL% EQU 0 goto :chchchchoices | |
echo This script requires elevated privileges. Re-run as Administrator to continue | |
goto :exit | |
:chchchchoices |
const nested = [1, 2, [3, 4, [5, 6, [7, 8, [9, 10]]]]]; | |
const flatten = nested.flat(Infinity); | |
// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
const result = flatten.join(", "); | |
// "1, 2, 3, 4, 5, 6, 7, 8, 9, 10" |