Tengo una matriz como esta a continuación
const spetialCharector = [ "http://www.curryconfigurator.org/cc#Quantity", "http://purl.org/heals/food/Texture", "http://www.curryconfigurator.org/cc#FoodItem", "http://www.w3.org/2001/XMLSchema#float" "http://purl.org/heals/food/hasIngredient" ]pero quiero la salida como esta a continuación
const RemoveSpecialCharectorArray =["Quantity" , "Texture" , "FoodItem" "float" , "hasIngredient"]Alguien me puede ayudar por favor si resolvió eso tanto apreciable
const input = [ "http://www.curryconfigurator.org/cc#Quantity", "http://purl.org/heals/food/Texture", "http://www.curryconfigurator.org/cc#FoodItem", "http://www.w3.org/2001/XMLSchema#float", "http://purl.org/heals/food/hasIngredient" ] let output = input.map((item) => { let slashSplit = item.split('/') let hashtagSplit = slashSplit[slashSplit.length-1].split('#') return hashtagSplit[hashtagSplit.length-1] } ) console.log(output)