feat(explorer): implement map fn argument
				
					
				
			Add a function for mapping over all FileNodes as an option for `Explorer`
This commit is contained in:
		@@ -40,6 +40,11 @@ export default ((userOpts?: Partial<Options>) => {
 | 
			
		||||
      fileTree.filter(opts.filterFn)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // If provided, apply map function to fileTree
 | 
			
		||||
    if (opts.mapFn) {
 | 
			
		||||
      fileTree.map(opts.mapFn)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Get all folders of tree. Initialize with collapsed state
 | 
			
		||||
    const folders = fileTree.getFolderPaths(opts.folderDefaultState === "collapsed")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user