UNPKG

go-fns

Version:
1 lines 2.41 kB
!function(r,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Functions=t():r.Functions=t()}(this,()=>{return e=[(r,t,n)=>{r.exports.pipe=n(1),r.exports.spread=n(3),r.exports.attempt=n(5),r.exports.repeat=n(6),r.exports.delay=n(7),r.exports.and=n(8),r.exports.or=n(10),r.exports.xor=n(11),r.exports.nor=n(12),r.exports.not=n(13)},(r,t,n)=>{var e=n(2);r.exports=function(r){var n=e(arguments);return function(){for(var r=null!=n[0]?n[0].apply(this,arguments):void 0,t=1;t<n.length;t++)r=n[t].call(this,r);return r}}},r=>{r.exports=function(r){for(var t=0;t<r.length;t++)if(null!=r[t]&&"function"!=typeof r[t])throw new TypeError("Expected a function, but found: "+r[t]);return r}},(r,t,n)=>{var e=n(4);r.exports=function(t){return e(t),function(r){return t.apply(this,r)}}},r=>{r.exports=function(r){if("function"!=typeof r)throw new TypeError("Expected a function, but found: "+r);return r}},(r,t,n)=>{var e=n(4);r.exports=function(r,t){e(r);try{return r.apply(r,Array.prototype.slice.call(arguments,1))}catch(r){return r}}},(r,t,n)=>{var p=n(4);r.exports=function(r,t,n){p(r);var e=[];t=null!=t?t:0;for(var o=0;o<t;o++)e[o]=r.apply(r,Array.prototype.slice.call(arguments,2));return e}},(r,t,n)=>{var e=n(4);r.exports=function(r,t,n){return e(r),t=null!=t?t:0,setTimeout.apply(this,arguments)}},(r,t,n)=>{var e=n(2),o=n(9);r.exports=function(t){return t=o(e(arguments)),function(){for(var r=0;r<t.length;r++)if(!t[r].apply(t[r],arguments))return!1;return 0<t.length}}},r=>{r.exports=function(r){for(var t=[],n=0;n<r.length;n++)"function"==typeof r[n]&&t.push(r[n]);return t}},(r,t,n)=>{var e=n(2),o=n(9);r.exports=function(t){return t=o(e(arguments)),function(){for(var r=0;r<t.length;r++)if(t[r].apply(this,arguments))return!0;return!1}}},(r,t,n)=>{var e=n(2),o=n(9);r.exports=function(n){return n=o(e(arguments)),function(){for(var r=0,t=0;t<n.length;t++)if(n[t].apply(this,arguments)&&1<++r)return!1;return 1===r}}},(r,t,n)=>{var e=n(2),o=n(9);r.exports=function(t){return t=o(e(arguments)),function(){for(var r=0;r<t.length;r++)if(t[r].apply(this,arguments))return!1;return 0<t.length}}},(r,t,n)=>{var e=n(4);r.exports=function(r){return e(r),function(){return!r.apply(r,arguments)}}}],o={},function r(t){var n=o[t];return void 0===n&&(n=o[t]={exports:{}},e[t](n,n.exports,r)),n.exports}(0);var e,o});