Split Bash String Into Array Js Mdn Object