Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
palabra de cadena de elemento hasta charector especial en javascript

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

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!