JSFiddle - React, Tailwind, and code Playground

by Artem

JavaScript

'use strict';

const t = 'Psada aas sadas';

const toCamelCase = input => {
	return input.split(' ').map((word, index) => {
		return index === 0 ? word.toLowerCase() : letter.toUpperCase();
	}).join('');
};

console.log(toCamelCase(t));