Example 1 — Official Stooge Check
The returned function yields the same object reference.
var stooge = { name: 'moe' };
stooge === _.constant(stooge)();
// → true How It Works
- Build an object.
stoogeholds{ name: 'moe' }. - Wrap it.
_.constant(stooge)returns a function. - Call it. The trailing
()returns that same object. - Same reference.
===istrue— not a clone.

