Discuss / JavaScript / 最后一题

最后一题

Topic source

froest2012

#1 Created at ... [Delete] [Delete and Lock User]
'use strict';

function normalize(arr) {
    return arr.map(function(s){
    var x = s.toLowerCase();
    x = x[0].toUpperCase()+x.substring(1);
    return x;
});

  • 1

Reply