canAttendMeetings = function (intervals) {
    intervals.sort(([aStart, aEnd], [bStart, bEnd]) =>
        aStart !== bStart ? aStart - bStart : aEnd - bEnd
    );

    return canAttend(intervals);
}
https://leetcode.com/problems/meeting-rooms/
Time O(N * logN) | Space O(1)
@param {number[][]} intervals
@return {boolean}