Untitled

mail@pastecode.io avatar
unknown
javascript
3 years ago
338 B
1
Indexable
Never
search_items.map( si => {
  	const itemFolders = si.split("/")
	const finder = path_list.find( pl => {
		const folders = pl.split("/")
		const res = true
		for ( let i = 0; i < folders.length; i++){
			if( ifol !== folders[i] ||  folders[i] !== "*"){
				res = false
				break
			}	
		}
		return res
	})
  	return {si, res: !!finder}
  })