could i replace or slice dash in array : can i replace the dash in array until end of the string in array  ?
if i have = `["Doni-night", "Mike-night" ]`

and i wantr the output to be array 
`["Doni", "Mike"]`

or we should use loop to slice them ??