Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,4 +1,4 @@
import isSymbol from '../isSymbol.js';
import isSymbol from '../isSymbol.js'
/**
* Compares values to sort them in ascending order.
@@ -10,32 +10,32 @@ import isSymbol from '../isSymbol.js';
*/
function compareAscending(value, other) {
if (value !== other) {
const valIsDefined = value !== undefined;
const valIsNull = value === null;
const valIsReflexive = value === value;
const valIsSymbol = isSymbol(value);
const valIsDefined = value !== undefined
const valIsNull = value === null
const valIsReflexive = value === value
const valIsSymbol = isSymbol(value)
const othIsDefined = other !== undefined;
const othIsNull = other === null;
const othIsReflexive = other === other;
const othIsSymbol = isSymbol(other);
const othIsDefined = other !== undefined
const othIsNull = other === null
const othIsReflexive = other === other
const othIsSymbol = isSymbol(other)
if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
(valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
(valIsNull && othIsDefined && othIsReflexive) ||
(!valIsDefined && othIsReflexive) ||
!valIsReflexive) {
return 1;
return 1
}
if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
(othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
(othIsNull && valIsDefined && valIsReflexive) ||
(!othIsDefined && valIsReflexive) ||
!othIsReflexive) {
return -1;
return -1
}
}
return 0;
return 0
}
export default compareAscending;
export default compareAscending