函数怎么返回数组内多个值?
const word =
('underscore_case',
'first_name',
'Some_Variable',
'calculate_AGE',
'delayed_departure');
const b = function () {
const d = word.split('\n');
for (const e of d) {
const [first, second] = e.toLowerCase().split('_');
const out = ${first}${second.replace(second[0], second[0].toUpperCase())}
;
console.log(out);
}
};
b(word);