摘要:
const Comepare = { LESS_THAN: -1, BIGGER_THAN: 1, EQUALS: 0 } function defaultCompare(a, b) { if (a b) { return Comepare.EQUALS; } return a < b ? Come 阅读全文
摘要:
const map = new Map(); map.set('Gandalf', 'gandalf@email.com'); map.set('John', 'johnsnow@email.com'); map.set('Tyrion', 'tyrion@email.com'); console. 阅读全文