CAMELCASTE -TO DEPHENTED JavaScript

let dashed = camel.replace(/[A-Z]/g, m => "-" + m.toLowerCase());
NemeXiS