1
0
Fork 0

Fat arrow function syntax

Changed one function call to fat arrow syntax, as that's what all the other methods are using. Seems more consistent that way.
This commit is contained in:
Joost De Cock 2020-05-17 11:41:05 +02:00 committed by GitHub
parent cc8a82e2e8
commit d8aa8ab3d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,9 +18,7 @@ export const mirrorGen = (start, end) => {
}
}
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1)
}
const capFirst = string => string.charAt(0).toUpperCase() + string.slice(1)
export default {
name: name,