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
  • 1,848
  • 1
  • 14
  • 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
  • 311,322
  • 76
  • 447
  • 566