摘要: 过滤数组假值 (真假美猴王) 删除数组中的所有假值。 在JavaScript中,假值有false、null、0、""、undefined 和NaN。 function bouncer(arr) { function isBoolean(element){ if (element!==false && 阅读全文
posted @ 2017-09-27 15:37 忆取 阅读(232) 评论(0) 推荐(0) 编辑