Falsy Bouncer

 

真假美猴王!

删除数组中的所有假值。

在JavaScript中,假值有false、null、0、""、undefined 和 NaN。

posted @ 2017-04-03 21:39  稀算客  阅读(172)  评论(0)    收藏  举报