Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

113
Visualizações
element string word till special charector in javascript

I have array like this below

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"
                          ]

but i want the output like this below

const RemoveSpecialCharectorArray =["Quantity" , "Texture" , "FoodItem" "float" , "hasIngredient"]

Anyone can help me out please if it solved that so much appreciatable

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

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)

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda