JSFiddle - React, Tailwind, and code Playground
by Researcher
JavaScript
//Как устроен jQuery: изучаем исходники
//http://habrahabr.ru/blogs/jquery/118564/
var Init = function () {
console.log('[Init]');
};
var jQuery = function () {
console.log('[jQuery]');
return new Init();
};
Init.prototype = jQuery.prototype = {
constructor: jQuery
};
var $elem = jQuery(); // [jQuery] , [Init]
console.log( $elem instanceof jQuery ); // true
console.log( $elem instanceof Init ); // true