more linting

This commit is contained in:
bkmartinjr
2018-09-19 10:30:14 -04:00
committed by Colin Megill
parent 9ee8781f32
commit d9a75fcd10
3 changed files with 79 additions and 133 deletions
+4 -5
View File
@@ -1,8 +1,7 @@
// jshint esversion: 6
export const alphabeticallySortedValues = values => {
return Object.keys(values).sort((a, b) => {
var textA = a.toUpperCase();
var textB = b.toUpperCase();
export const alphabeticallySortedValues = values =>
Object.keys(values).sort((a, b) => {
const textA = a.toUpperCase();
const textB = b.toUpperCase();
return textA < textB ? -1 : textA > textB ? 1 : 0;
});
};