LeetCode #521 - Longest Uncommon Sequence I (JavaScript)

const findLUSlength = (a, b) => {
    return a === b ? - 1 : Math.max(a.length, b.length);
}