dead-simple-curry
Version:
The simplest currying ever :)
1 lines • 1.07 kB
JavaScript
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";t.exports=function(t){return function e(){for(var n=this,r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];return o.length>=t.length?t.call.apply(t,[this].concat(o)):function(){for(var t=arguments.length,r=Array(t),u=0;u<t;u++)r[u]=arguments[u];return e.call.apply(e,[n].concat(o,r))}}}}])});