;(function( ) {
let obj = {
count: function( ) { ... }
}
window._ = obj;
})( )
var _ = function(obj) {
if (obj instanceof _) return obj;
if (!(this instanceof _)) return new _(obj);
console.log(obj);
this._wrapped = obj;
};
root._ = _;
_.map([1, 2, 3], n => n * 2);
_([1, 2, 3]).map(n => n * 2);