These days, you can do all sorts of things online. For example, you can use various websites to make virtual friends. For some people, growing their social network (their friends, their friends' friends, their friends' friends' friends, and so on), h
//数据结构对比 增查改删 { //map.set和Object let item = {t:1}; let map = new Map(); let set = new Set(); let obj = {}; //增 map.set('t',1); set.add(item); obj['t'] = 1; console.info('map-set-obj',map,set,obj);//{"t" => 1};0:value:{t: 1};{t:1}; //查 console
//Map与Array的对比 { let map=new Map(); let array=[]; //增 map.set('t',1); array.push({t:1}); console.info('map-Array',map,array); //查 let map_exist=map.has('t'); let array_exist=array.find(item=>item.t); console.info('map-Array',map_exist,array_exist);//