quebrar o camelcase codewars

"IamMamad".split(/(?=[A-Z])/).join(' ');
//result 'Iam Mamad'
Mamad