JS|TS - 去除对象和数组中的假值
/* * 过滤模式 * 过滤 [] {} undefined null false 0 '' * * 宽松模式 * 过滤 [] {} undefined null * * 中间模式 * 过滤 [] {} '' null undefined */const clearObj = (params: any, mode: 'easy' | 'filter' | 'middle' = 'easy', filterList: [] = [],): any => { if (ty