首页 > TAG信息列表 > filePaths
loops/reduce/方法链 处理数组对比
loops 循环 const files = ['foo.txt ', '.bar', ' ', 'baz.foo'] let filePaths = [] for (let file of files) { const fileName = file.trim() if (fileName) { const filePath = `~/cool_app/${fileName}` filePaths.push