git clone https://github.com/tytskiy/Helpers.js.gitnpm i -g gulpnpm igulp
varhelpers=newcore.T0.Helpers();// with reset timerhelpers.wait({freq: 100,reset: 3000,check: function(){returnwindow.jQuery;},success: function(){console.log('jQuery was found')},fail: function(){console.log('jQuery wasn\'t found during 3 seconds')},always: function(){console.log('Anyway print something')}});// with reset functionhelpers.wait({freq: 100,reset: function(){return2+2>-1;},check: function(){returnwindow.Zepto;},success: function(){console.log('Zepto was found')},fail: function(){console.log('Zepto wasn\'t found')},always: function(){console.log('Anyway print something')}});Add more examples