There is a very simple way to implement it by replace. For ES6For ECMAScript 6:
'foo'.replace(/^./, str => str.toUpperCase())
resultResult:
'Foo'
There is a very simple way to implement it by replace. For ES6:
'foo'.replace(/^./, str => str.toUpperCase())
result:
'Foo'
There is a very simple way to implement it by replace. For ECMAScript 6:
'foo'.replace(/^./, str => str.toUpperCase())
Result:
'Foo'
There is a very simple way to implement it by replace. Only JS For ES6:
'foo'.replace(/^./, str => str.toUpperCase())
result:
'Foo'
There is a very simple way to implement it by replace. Only JS ES6:
'foo'.replace(/^./, str => str.toUpperCase())
result:
'Foo'
There is a very simple way to implement it by replace. For ES6:
'foo'.replace(/^./, str => str.toUpperCase())
result:
'Foo'
There is a very simple way to implement it by replace. Only JS ES6:
'foo'.replace(/^./, str => str.toUpperCase())
result:
'Foo'
lang-js