haipingzi

Results 13 comments of haipingzi

```javascript function normalize(str) { let obj = {}; const vals = str.split(/[\[\]]/g).filter(Boolean); for (let i = vals.length - 1; i >= 0; i--) { !obj.value ? obj.value = vals[i] :...

function print(n) { setTimeout(async ()=>{ await new Promise((resolve, reject)=>{ setTimeout(()=>{ resolve(n) },n*1000) }); console.log(n) },Math.floor(Math.random()*100)) } for(var i=0;i