TypeError: Cannot read property 'map' of null

定位bug:数组遍历map导致的 

{(arr).map(i => (
     return i>10
))}

解决方法:数组加空值兼容即可

{(arr || []).map(i => (
     return i>10
))}
原文地址:https://www.cnblogs.com/xiaoxiao2017/p/15347149.html