1

In twitter bootstrap source code I found the following:

!function ($) {

  "use strict"; // jshint ;_;

I've never met such a construction before. What does it mean? It looks like IIFE, but I am not sure it is the equivalent.

paperstreet7
  • 2,058
  • 1
  • 15
  • 18

1 Answers1

6

It turns it into an expression, usually followed by (). It saves a byte over using parentheses, at the cost of wasting about a hundred StackOverflow questions.

Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592