Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

138
Vistas
point-free using String.prototype.concat() not working as expected

I got an unexpected behavior when I try to concat two strings in a point-free style:

    const namespace = "ns-";
    const names = ['bar','foo', 'baz'];
    
    names.map((i) => namespace.concat(i)) // ok
    names.map(namespace.concat) // ERROR: String.prototype.concat called on null or undefined

I thought I could omit the parameter on function call since AFAIK a => fn(a) is the same as calling fn. But in the case of using concat() it is not working.

Obviously, I'm missing something on the language, but I don't know what it is

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda