Commit f5e3f384 authored by Yashu Mittal's avatar Yashu Mittal 👍🏻

Create capitalize filter

parent 0be8115a
export default string => {
let array = string.split(' ')
let capitalizeString = '';
array.map(value => {
capitalizeString += value[0].toUpperCase() + value.substr(1) + ' '
})
return capitalizeString.trim();
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment