Results 4 comments of Allen

从 antd 用到 antd pro ,真的帮我省了不少开发时间,以下是我司的一款产品,还是菜鸟,没有掌握pro的精髓求轻喷😂 - 内容联盟网站 - 网易 - 链接:https://youliao.163yun.com/union/ - 截图: ![shot](https://user-images.githubusercontent.com/10323679/37697541-63245f94-2d18-11e8-9148-c8a5d5a1c3f0.png)

额 虽然没大佬们厉害,暂且做个记录吧 ```javascript function flap(arr){ if([].every.call(arr,item=>!Array.isArray(item))){ return arr; } return [].reduce.call(arr,(pre,cur)=>{ if(Array.isArray(cur)){ return [].concat(pre,flap(cur)); }else{ return [].concat(pre,cur); } },[]) } function removeRepeat(arr){ return [...new Set(arr)]; } function sort(arr){ return [].sort.call(arr,(a,b)=>a-b)...

`return Object.prototype.toString.call(ret).match(/^\[object (\w+)\]$/)[1]==='Object' ? ret : obj;` 也可以吧

***nice work***