Skip to content

Commit

Permalink
Remove space
Browse files Browse the repository at this point in the history
Signed-off-by: macdonst <[email protected]>
  • Loading branch information
macdonst committed May 2, 2024
1 parent d9b18f6 commit 2b3d426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (typeof process !== 'undefined') {

function kebabToCamel(attribute) {
if (attribute.includes('-')) {
return attribute.split('-').map((word, index) => index !== 0 ? word.charAt(0). toUpperCase() + word.slice(1) : word
return attribute.split('-').map((word, index) => index !== 0 ? word.charAt(0).toUpperCase() + word.slice(1) : word
).join('')
} else {
return attribute
Expand Down

0 comments on commit 2b3d426

Please sign in to comment.