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:
parent
cc8a82e2e8
commit
d8aa8ab3d0
1 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue