摘要: const Comepare = { LESS_THAN: -1, BIGGER_THAN: 1, EQUALS: 0 } function defaultCompare(a, b) { if (a b) { return Comepare.EQUALS; } return a < b ? Come 阅读全文
posted @ 2020-11-09 18:18 WP-WangPin 阅读(104) 评论(0) 推荐(0) 编辑
摘要: const map = new Map(); map.set('Gandalf', 'gandalf@email.com'); map.set('John', 'johnsnow@email.com'); map.set('Tyrion', 'tyrion@email.com'); console. 阅读全文
posted @ 2020-11-09 12:48 WP-WangPin 阅读(188) 评论(0) 推荐(0) 编辑