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

146
Vistas
I was reading my bootstrap.min.js and I can't understanding what this line actually doing here [f = e.attr("data-target");f||(f = e.attr("href")]
function a(e){..........}
var e = a(this);  
var f = e.attr("data-target");f||(f = e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));

what this line actually doing here f||(f = e.attr("href"), I don't think it is only saying "true" or "false" if it is shorthand notation then pzl.. explain

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

This means that there is some link in data-target attribute's value, If it is not there then It will replace the href attibute's value accoding to the regex pattern.

about 4 years ago · Juan Pablo Isaza Denunciar

0

This is a packaged library files, that means all its variables functions are renamed with 1 letter or 2 to optimize the code for compilers

Also alot of instruction are shortened so much, line breacks & spaces are removed

So no human can understand this kind of code without wasting much efforts

If you'd really like to read a library's code, just visit its github repo, or read the non-optimized files , like bootstrap.js not the bootstrap.min.js

about 4 years ago · Juan Pablo Isaza Denunciar
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