Call it via:
const flat = flatten( realDeepObject ),
flatDotted = flatten( realDeepObject, '', '.' );
Test case:
#!/usr/bin/env sh | |
## Set newt color palette for dialogs | |
NEWT_COLORS_0=' | |
root=,blue | |
' | |
NEWT_COLORS_1=' | |
root=,blue | |
checkbox=,blue |
[playlist] | |
File1=http://nrcu.gov.ua:8000/ur1-aacp-ulow | |
Title1=Українське радіо: Перший # AAC+ 16 кбітс/с | |
Length1=-1 | |
File2=http://nrcu.gov.ua:8000/ur1-aacplus-l | |
Title2=Українське радіо: Перший # AAC+ 48 кбітс/с | |
Length2=-1 | |
File3=http://nrcu.gov.ua:8000/ur1-mp3-l | |
Title3=Українське радіо: Перший # mp3 56 кбітс/с |
## https://bugzilla.xfce.org/show_bug.cgi?id=13814#c1 | |
su username -c "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /usr/bin/xfce4-panel --plugin-event=genmon-1:refresh:bool:true" |
# Autocompletion for Vagrant just put this line in your ~/.bashrc | |
complete -W "$(vagrant list-commands | awk 'NR>3 {print $1}')" vagrant |