728x90 compare1 how to compare boolean value? This is simple algorithm for compare with boolean value! matjipList.sort((a, b) => (a.visited? 1:0).compareTo(b.visited? 1:0)); 2022. 12. 16. 이전 1 다음 728x90