Skip to content

Commit 579ea46

Browse files
committed
Fix comparison
1 parent 91485d0 commit 579ea46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sliceSelector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function createSelectorName(slice) {
1515
function camelize(str) {
1616
return str
1717
.replace(/(?:^\w|[A-Z]|\b\w)/g, (letter, index) => {
18-
return index == 0 ? letter.toLowerCase() : letter.toUpperCase()
18+
return index === 0 ? letter.toLowerCase() : letter.toUpperCase()
1919
})
2020
.replace(/\s+/g, '')
2121
.replace(/[-_]/g, '')

0 commit comments

Comments
 (0)