Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rambda

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rambda - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

5

__tests__/curry.js

@@ -11,2 +11,7 @@ const R = require("../rambda")

})
it("when called with more arguments", () => {
const add = R.curry((n, n2) => n + n2)
expect(add(1, 2, 3)).toEqual(3)
})
})

@@ -25,3 +25,13 @@ const R = require("../rambda")

).toEqual(7)
})
it("with curry", () => {
const add = R.curry((n, n2) => n + n2)
expect(
R.reduce(add, 0, [1, 2, 3])
).toEqual(6)
})
})

2

index.js

@@ -1,1 +0,1 @@

module.exports=function(d){var e={};function __webpack_require__(g){if(e[g]){return e[g].exports;}var h=e[g]={i:g,l:!1,exports:{}};d[g].call(h.exports,h,h.exports,__webpack_require__);h.l=!0;return h.exports;}__webpack_require__.m=d;__webpack_require__.c=e;__webpack_require__.i=function(j){return j;};__webpack_require__.d=function(k,l,m){if(!__webpack_require__.o(k,l)){Object.defineProperty(k,l,{configurable:!1,enumerable:!0,get:m});}};__webpack_require__.n=function(n){var q=n&&n.__esModule?function getDefault(){return n['default'];}:function getModuleExports(){return n;};__webpack_require__.d(q,'a',q);return q;};__webpack_require__.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=55);}([function(t,u,v){"use strict";function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}var w=a.toString();if(w.startsWith("async")){return"Async";}else if(w==="[object Promise]"){return"Promise";}else if(w.includes("function")||w.includes("=>")){return"Function";}return"Object";}t.exports=type;},function(x,y,z){"use strict";function baseSlice(A,B,C){var D=-1,E=A.length;C=C>E?E:C;if(C<0){C+=E;}E=B>C?0:C-B>>>0;B>>>=0;var F=Array(E);while(++D<E){F[D]=A[D+B];}return F;}x.exports=baseSlice;},function(G,H,I){"use strict";var J=I(4);function contains(K,L){if(L===void 0){return function(M){return contains(K,M);};}var N=-1,O=!1;while(++N<L.length&&!O){if(J(L[N],K)){O=!0;}}return O;}G.exports=contains;},function(P,Q,R){"use strict";function drop(S,a){if(a===void 0){return function(T){return drop(S,T);};}return a.slice(S);}P.exports=drop;},function(U,V,W){"use strict";var X=W(0);function equals(a,b){if(b===void 0){return function(Y){return equals(a,Y);};}else if(a===b){return a!==0||1/a===1/b;}var Z=X(a);if(Z!==X(b)){return!1;}if(Z==="Array"){var a1=Array.from(a),b1=Array.from(b);return a1.sort().toString()===b1.sort().toString();}if(Z==="Object"){var c1=Object.keys(a);if(c1.length===Object.keys(b).length){if(c1.length===0){return!0;}var d1=!0;c1.map(function(e1){if(d1){var f1=X(a[e1]),g1=X(b[e1]);if(f1===g1){if(f1==="Object"){if(Object.keys(a[e1]).length===Object.keys(b[e1]).length){if(Object.keys(a[e1]).length!==0){if(!equals(a[e1],b[e1])){d1=!1;}}}else{d1=!1;}}else if(!equals(a[e1],b[e1])){d1=!1;}}else{d1=!1;}}});return d1;}}return!1;}U.exports=equals;},function(h1,i1,j1){"use strict";function map(fn,l1){if(l1===void 0){return function(m1){return map(fn,m1);};}var n1=-1,o1=l1.length,p1=Array(o1);while(++n1<o1){p1[n1]=fn(l1[n1]);}return p1;}h1.exports=map;},function(q1,r1,s1){"use strict";function merge(t1,u1){if(u1===void 0){return function(v1){return merge(t1,v1);};}return Object.assign({},t1,u1);}q1.exports=merge;},function(w1,x1,y1){"use strict";function add(a,b){if(b===void 0){return function(c){return add(a,c);};}return a+b;}w1.exports=add;},function(z1,A1,B1){"use strict";function addIndex(C1){return function(fn){for(var E1=0,newFn=function newFn(){for(var F1=arguments.length,G1=Array(F1),H1=0;H1<F1;H1++){G1[H1]=arguments[H1];}return fn.apply(null,[].concat(G1,[E1++]));},I1=arguments.length,J1=Array(I1>1?I1-1:0),K1=1;K1<I1;K1++){J1[K1-1]=arguments[K1];}return C1.apply(null,[newFn].concat(J1));};}z1.exports=addIndex;},function(L1,M1,N1){"use strict";function adjust(fn,P1,Q1){if(P1===void 0){return function(R1,S1){return adjust(fn,R1,S1);};}else if(Q1===void 0){return function(T1){return adjust(fn,P1,T1);};}var U1=Q1.concat();return U1.map(function(V1,W1){if(W1===P1){return fn(Q1[P1]);}return V1;});}L1.exports=adjust;},function(X1,Y1,Z1){"use strict";function any(fn,b2){if(b2===void 0){return function(c2){return any(fn,c2);};}var d2=0;while(d2<b2.length){if(fn(b2[d2])){return!0;}d2++;}return!1;}X1.exports=any;},function(e2,f2,g2){"use strict";function append(h2,i2){if(i2===void 0){return function(j2){return append(h2,j2);};}var k2=i2.concat();k2.push(h2);return k2;}e2.exports=append;},function(l2,m2,n2){"use strict";var compose=function compose(){for(var o2=arguments.length,p2=Array(o2),q2=0;q2<o2;q2++){p2[q2]=arguments[q2];}return function(r2){var s2=p2.slice();while(s2.length>0){r2=s2.pop()(r2);}return r2;};};l2.exports=compose;},function(t2,u2,v2){"use strict";function _toConsumableArray(w2){if(Array.isArray(w2)){for(var i=0,x2=Array(w2.length);i<w2.length;i++){x2[i]=w2[i];}return x2;}else{return Array.from(w2);}}function curry(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var y2=arguments.length,p=Array(y2),z2=0;z2<y2;z2++){p[z2]=arguments[z2];}return function(o){return o.length===f.length?f.apply(void 0,_toConsumableArray(o)):curry(f,o);}([].concat(_toConsumableArray(a),p));};}t2.exports=curry;},function(A2,B2,C2){"use strict";var D2=C2(0);function defaultTo(E2,F2){if(arguments.length===1){return function(G2){return defaultTo(E2,G2);};}return F2===void 0||!(D2(F2)===D2(E2))?E2:F2;}A2.exports=defaultTo;},function(H2,I2,J2){"use strict";function dropLast(K2,a){if(a===void 0){return function(L2){return dropLast(K2,L2);};}return a.slice(0,-K2);}H2.exports=dropLast;},function(M2,N2,O2){"use strict";function filter(fn,Q2){if(Q2===void 0){return function(R2){return filter(fn,R2);};}var S2=-1,T2=0,U2=Q2.length,V2=[];while(++S2<U2){var W2=Q2[S2];if(fn(W2)){V2[T2++]=W2;}}return V2;}M2.exports=filter;},function(X2,Y2,Z2){"use strict";function find(fn,b3){if(b3===void 0){return function(c3){return find(fn,c3);};}return b3.find(fn);}X2.exports=find;},function(d3,e3,f3){"use strict";function findIndex(fn,h3){if(h3===void 0){return function(i3){return findIndex(fn,i3);};}var j3=h3.length,k3=-1;while(++k3<j3){if(fn(h3[k3])){return k3;}}return-1;}d3.exports=findIndex;},function(l3,m3,n3){"use strict";function flatten(o3,p3){p3=p3===void 0?[]:p3;for(var i=0;i<o3.length;i++){if(Array.isArray(o3[i])){flatten(o3[i],p3);}else{p3.push(o3[i]);}}return p3;}l3.exports=flatten;},function(q3,r3,s3){"use strict";function has(t3,u3){if(u3===void 0){return function(v3){return has(t3,v3);};}return u3[t3]!==void 0;}q3.exports=has;},function(w3,x3,y3){"use strict";function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}w3.exports=head;},function(z3,A3,B3){"use strict";function indexOf(C3,D3){if(D3===void 0){return function(E3){return indexOf(C3,E3);};}var F3=-1,G3=D3.length;while(++F3<G3){if(D3[F3]===C3){return F3;}}return-1;}z3.exports=indexOf;},function(H3,I3,J3){"use strict";var K3=J3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?K3(a,0,-1):[];}H3.exports=init;},function(L3,M3,N3){"use strict";function join(O3,P3){if(P3===void 0){return function(Q3){return join(O3,Q3);};}return P3.join(O3);}L3.exports=join;},function(R3,S3,T3){"use strict";function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}R3.exports=last;},function(U3,V3,W3){"use strict";function length(X3){return X3.length;}U3.exports=length;},function(Y3,Z3,a4){"use strict";function match(b4,c4){if(c4===void 0){return function(d4){return match(b4,d4);};}var e4=c4.match(b4);return e4===null?[]:e4;}Y3.exports=match;},function(f4,g4,h4){"use strict";function omit(i4,j4){if(j4===void 0){return function(k4){return omit(i4,k4);};}var l4={};for(key in j4){if(!i4.includes(key)){l4[key]=j4[key];}}return l4;}f4.exports=omit;},function(m4,n4,o4){"use strict";var p4=o4(0),q4=o4(6);function curry(fn){var s4=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(t4){if(p4(fn)==="Async"){return new Promise(function(u4,v4){fn(q4(t4,s4)).then(u4).catch(v4);});}return fn(q4(t4,s4));};}m4.exports=curry;},function(w4,x4,y4){"use strict";function path(z4,A4){if(A4===void 0){return function(B4){return path(z4,B4);};}var C4=A4,D4=0;if(typeof z4==="string"){z4=z4.split(".");}while(D4<z4.length){if(C4===null){return void 0;}C4=C4[z4[D4]];D4++;}return C4;}w4.exports=path;},function(E4,F4,G4){"use strict";function pick(H4,I4){if(I4===void 0){return function(J4){return pick(H4,J4);};}var K4={},L4=0;while(L4<H4.length){if(H4[L4]in I4){K4[H4[L4]]=I4[H4[L4]];}L4++;}return K4;}E4.exports=pick;},function(M4,N4,O4){"use strict";var P4=O4(5);function pluck(Q4,R4){if(R4===void 0){return function(S4){return pluck(Q4,S4);};}var T4=[];P4(function(U4){if(!(U4[Q4]===void 0)){T4.push(U4[Q4]);}},R4);return T4;}M4.exports=pluck;},function(V4,W4,X4){"use strict";function prepend(Y4,Z4){if(Z4===void 0){return function(a5){return prepend(Y4,a5);};}var b5=Z4.concat();b5.unshift(Y4);return b5;}V4.exports=prepend;},function(c5,d5,e5){"use strict";function prop(f5,g5){if(g5===void 0){return function(h5){return prop(f5,h5);};}return g5[f5];}c5.exports=prop;},function(i5,j5,k5){"use strict";function propEq(l5,m5,n5){if(m5===void 0){return function(o5,p5){return propEq(l5,o5,p5);};}else if(n5===void 0){return function(q5){return propEq(l5,m5,q5);};}return n5[l5]===m5;}i5.exports=propEq;},function(r5,s5,t5){"use strict";function range(u5,v5){for(var w5=[],i=u5;i<v5;i++){w5.push(i);}return w5;}r5.exports=range;},function(x5,y5,z5){"use strict";function reduce(fn,B5,C5){if(B5===void 0){return function(D5,E5){return reduce(fn,D5,E5);};}else if(C5===void 0){return function(F5){return reduce(fn,B5,F5);};}return C5.reduce(fn,B5);}x5.exports=reduce;},function(G5,H5,I5){"use strict";function repeat(a,J5){if(J5===void 0){return function(K5){return repeat(a,K5);};}var L5=Array(J5);return L5.fill(a);}G5.exports=repeat;},function(M5,N5,O5){"use strict";function replace(P5,Q5,R5){if(Q5===void 0){return function(S5,T5){return replace(P5,S5,T5);};}else if(R5===void 0){return function(U5){return replace(P5,Q5,U5);};}return R5.replace(P5,Q5);}M5.exports=replace;},function(V5,W5,X5){"use strict";function sort(fn,Z5){if(Z5===void 0){return function(a6){return sort(fn,a6);};}var b6=Z5.concat();return b6.sort(fn);}V5.exports=sort;},function(c6,d6,e6){"use strict";function sortBy(fn,g6){if(g6===void 0){return function(h6){return sortBy(fn,h6);};}var i6=g6.concat();return i6.sort(function(a,b){var j6=fn(a),k6=fn(b);return j6<k6?-1:j6>k6?1:0;});}c6.exports=sortBy;},function(l6,m6,n6){"use strict";function split(o6,p6){if(p6===void 0){return function(q6){return split(o6,q6);};}return p6.split(o6);}l6.exports=split;},function(r6,s6,t6){"use strict";function splitEvery(u6,a){if(a===void 0){return function(v6){return splitEvery(u6,v6);};}u6=u6>1?u6:1;var w6=[],x6=0;while(x6<a.length){w6.push(a.slice(x6,x6+=u6));}return w6;}r6.exports=splitEvery;},function(y6,z6,A6){"use strict";function subtract(a,b){if(b===void 0){return function(B6){return subtract(a,B6);};}return a-b;}y6.exports=subtract;},function(C6,D6,E6){"use strict";var F6=E6(3);function tail(G6){return F6(1,G6);}C6.exports=tail;},function(H6,I6,J6){"use strict";var K6=J6(1);function take(L6,a){if(a===void 0){return function(M6){return take(L6,M6);};}else if(typeof a==="string"){return a.slice(0,L6);}return K6(a,0,L6);}H6.exports=take;},function(N6,O6,P6){"use strict";var Q6=P6(1);function takeLast(R6,a){if(a===void 0){return function(S6){return takeLast(R6,S6);};}var T6=a.length;R6=R6>T6?T6:R6;if(typeof a==="string"){return a.slice(T6-R6);}R6=T6-R6;return Q6(a,R6,T6);}N6.exports=takeLast;},function(U6,V6,W6){"use strict";function test(X6,Y6){if(Y6===void 0){return function(Z6){return test(X6,Z6);};}return Y6.search(X6)===-1?!1:!0;}U6.exports=test;},function(a7,b7,c7){"use strict";function toLower(d7){return d7.toLowerCase();}a7.exports=toLower;},function(e7,f7,g7){"use strict";function toUpper(h7){return h7.toUpperCase();}e7.exports=toUpper;},function(i7,j7,k7){"use strict";function trim(l7){return l7.trim();}i7.exports=trim;},function(m7,n7,o7){"use strict";var p7=o7(2);function uniq(q7){var r7=-1,s7=[];while(++r7<q7.length){var t7=q7[r7];if(!p7(t7,s7)){s7.push(t7);}}return s7;}m7.exports=uniq;},function(u7,v7,w7){"use strict";function update(x7,y7,z7){if(y7===void 0){return function(A7,B7){return update(x7,A7,B7);};}else if(z7===void 0){return function(C7){return update(x7,y7,C7);};}var D7=z7.concat();return D7.fill(y7,x7,x7+1);}u7.exports=update;},function(E7,F7,G7){"use strict";function values(H7){var I7=[];for(key in H7){I7.push(H7[key]);}return I7;}E7.exports=values;},function(J7,K7,L7){"use strict";K7.add=L7(7);K7.addIndex=L7(8);K7.any=L7(10);K7.adjust=L7(9);K7.append=L7(11);K7.compose=L7(12);K7.contains=L7(2);K7.curry=L7(13);K7.defaultTo=L7(14);K7.drop=L7(3);K7.dropLast=L7(15);K7.equals=L7(4);K7.filter=L7(16);K7.find=L7(17);K7.findIndex=L7(18);K7.flatten=L7(19);K7.has=L7(20);K7.head=L7(21);K7.indexOf=L7(22);K7.init=L7(23);K7.join=L7(24);K7.last=L7(25);K7.length=L7(26);K7.map=L7(5);K7.match=L7(27);K7.merge=L7(6);K7.omit=L7(28);K7.path=L7(30);K7.partialCurry=L7(29);K7.pick=L7(31);K7.pluck=L7(32);K7.prepend=L7(33);K7.prop=L7(34);K7.propEq=L7(35);K7.range=L7(36);K7.repeat=L7(38);K7.replace=L7(39);K7.sort=L7(40);K7.sortBy=L7(41);K7.split=L7(42);K7.splitEvery=L7(43);K7.subtract=L7(44);K7.tail=L7(45);K7.take=L7(46);K7.takeLast=L7(47);K7.test=L7(48);K7.toLower=L7(49);K7.toUpper=L7(50);K7.trim=L7(51);K7.type=L7(0);K7.uniq=L7(52);K7.update=L7(53);K7.values=L7(54);K7.reduce=L7(37);}]);
module.exports=function(d){var e={};function __webpack_require__(g){if(e[g]){return e[g].exports;}var h=e[g]={i:g,l:!1,exports:{}};d[g].call(h.exports,h,h.exports,__webpack_require__);h.l=!0;return h.exports;}__webpack_require__.m=d;__webpack_require__.c=e;__webpack_require__.i=function(j){return j;};__webpack_require__.d=function(k,l,m){if(!__webpack_require__.o(k,l)){Object.defineProperty(k,l,{configurable:!1,enumerable:!0,get:m});}};__webpack_require__.n=function(n){var q=n&&n.__esModule?function getDefault(){return n['default'];}:function getModuleExports(){return n;};__webpack_require__.d(q,'a',q);return q;};__webpack_require__.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=55);}([function(t,u,v){"use strict";function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}var w=a.toString();if(w.startsWith("async")){return"Async";}else if(w==="[object Promise]"){return"Promise";}else if(w.includes("function")||w.includes("=>")){return"Function";}return"Object";}t.exports=type;},function(x,y,z){"use strict";function baseSlice(A,B,C){var D=-1,E=A.length;C=C>E?E:C;if(C<0){C+=E;}E=B>C?0:C-B>>>0;B>>>=0;var F=Array(E);while(++D<E){F[D]=A[D+B];}return F;}x.exports=baseSlice;},function(G,H,I){"use strict";var J=I(4);function contains(K,L){if(L===void 0){return function(M){return contains(K,M);};}var N=-1,O=!1;while(++N<L.length&&!O){if(J(L[N],K)){O=!0;}}return O;}G.exports=contains;},function(P,Q,R){"use strict";function drop(S,a){if(a===void 0){return function(T){return drop(S,T);};}return a.slice(S);}P.exports=drop;},function(U,V,W){"use strict";var X=W(0);function equals(a,b){if(b===void 0){return function(Y){return equals(a,Y);};}else if(a===b){return a!==0||1/a===1/b;}var Z=X(a);if(Z!==X(b)){return!1;}if(Z==="Array"){var a1=Array.from(a),b1=Array.from(b);return a1.sort().toString()===b1.sort().toString();}if(Z==="Object"){var c1=Object.keys(a);if(c1.length===Object.keys(b).length){if(c1.length===0){return!0;}var d1=!0;c1.map(function(e1){if(d1){var f1=X(a[e1]),g1=X(b[e1]);if(f1===g1){if(f1==="Object"){if(Object.keys(a[e1]).length===Object.keys(b[e1]).length){if(Object.keys(a[e1]).length!==0){if(!equals(a[e1],b[e1])){d1=!1;}}}else{d1=!1;}}else if(!equals(a[e1],b[e1])){d1=!1;}}else{d1=!1;}}});return d1;}}return!1;}U.exports=equals;},function(h1,i1,j1){"use strict";function map(fn,l1){if(l1===void 0){return function(m1){return map(fn,m1);};}var n1=-1,o1=l1.length,p1=Array(o1);while(++n1<o1){p1[n1]=fn(l1[n1]);}return p1;}h1.exports=map;},function(q1,r1,s1){"use strict";function merge(t1,u1){if(u1===void 0){return function(v1){return merge(t1,v1);};}return Object.assign({},t1,u1);}q1.exports=merge;},function(w1,x1,y1){"use strict";function add(a,b){if(b===void 0){return function(c){return add(a,c);};}return a+b;}w1.exports=add;},function(z1,A1,B1){"use strict";function addIndex(C1){return function(fn){for(var E1=0,newFn=function newFn(){for(var F1=arguments.length,G1=Array(F1),H1=0;H1<F1;H1++){G1[H1]=arguments[H1];}return fn.apply(null,[].concat(G1,[E1++]));},I1=arguments.length,J1=Array(I1>1?I1-1:0),K1=1;K1<I1;K1++){J1[K1-1]=arguments[K1];}return C1.apply(null,[newFn].concat(J1));};}z1.exports=addIndex;},function(L1,M1,N1){"use strict";function adjust(fn,P1,Q1){if(P1===void 0){return function(R1,S1){return adjust(fn,R1,S1);};}else if(Q1===void 0){return function(T1){return adjust(fn,P1,T1);};}var U1=Q1.concat();return U1.map(function(V1,W1){if(W1===P1){return fn(Q1[P1]);}return V1;});}L1.exports=adjust;},function(X1,Y1,Z1){"use strict";function any(fn,b2){if(b2===void 0){return function(c2){return any(fn,c2);};}var d2=0;while(d2<b2.length){if(fn(b2[d2])){return!0;}d2++;}return!1;}X1.exports=any;},function(e2,f2,g2){"use strict";function append(h2,i2){if(i2===void 0){return function(j2){return append(h2,j2);};}var k2=i2.concat();k2.push(h2);return k2;}e2.exports=append;},function(l2,m2,n2){"use strict";var compose=function compose(){for(var o2=arguments.length,p2=Array(o2),q2=0;q2<o2;q2++){p2[q2]=arguments[q2];}return function(r2){var s2=p2.slice();while(s2.length>0){r2=s2.pop()(r2);}return r2;};};l2.exports=compose;},function(t2,u2,v2){"use strict";function _toConsumableArray(w2){if(Array.isArray(w2)){for(var i=0,x2=Array(w2.length);i<w2.length;i++){x2[i]=w2[i];}return x2;}else{return Array.from(w2);}}function curry(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var y2=arguments.length,p=Array(y2),z2=0;z2<y2;z2++){p[z2]=arguments[z2];}return function(o){return o.length>=f.length?f.apply(void 0,_toConsumableArray(o)):curry(f,o);}([].concat(_toConsumableArray(a),p));};}t2.exports=curry;},function(A2,B2,C2){"use strict";var D2=C2(0);function defaultTo(E2,F2){if(arguments.length===1){return function(G2){return defaultTo(E2,G2);};}return F2===void 0||!(D2(F2)===D2(E2))?E2:F2;}A2.exports=defaultTo;},function(H2,I2,J2){"use strict";function dropLast(K2,a){if(a===void 0){return function(L2){return dropLast(K2,L2);};}return a.slice(0,-K2);}H2.exports=dropLast;},function(M2,N2,O2){"use strict";function filter(fn,Q2){if(Q2===void 0){return function(R2){return filter(fn,R2);};}var S2=-1,T2=0,U2=Q2.length,V2=[];while(++S2<U2){var W2=Q2[S2];if(fn(W2)){V2[T2++]=W2;}}return V2;}M2.exports=filter;},function(X2,Y2,Z2){"use strict";function find(fn,b3){if(b3===void 0){return function(c3){return find(fn,c3);};}return b3.find(fn);}X2.exports=find;},function(d3,e3,f3){"use strict";function findIndex(fn,h3){if(h3===void 0){return function(i3){return findIndex(fn,i3);};}var j3=h3.length,k3=-1;while(++k3<j3){if(fn(h3[k3])){return k3;}}return-1;}d3.exports=findIndex;},function(l3,m3,n3){"use strict";function flatten(o3,p3){p3=p3===void 0?[]:p3;for(var i=0;i<o3.length;i++){if(Array.isArray(o3[i])){flatten(o3[i],p3);}else{p3.push(o3[i]);}}return p3;}l3.exports=flatten;},function(q3,r3,s3){"use strict";function has(t3,u3){if(u3===void 0){return function(v3){return has(t3,v3);};}return u3[t3]!==void 0;}q3.exports=has;},function(w3,x3,y3){"use strict";function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}w3.exports=head;},function(z3,A3,B3){"use strict";function indexOf(C3,D3){if(D3===void 0){return function(E3){return indexOf(C3,E3);};}var F3=-1,G3=D3.length;while(++F3<G3){if(D3[F3]===C3){return F3;}}return-1;}z3.exports=indexOf;},function(H3,I3,J3){"use strict";var K3=J3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?K3(a,0,-1):[];}H3.exports=init;},function(L3,M3,N3){"use strict";function join(O3,P3){if(P3===void 0){return function(Q3){return join(O3,Q3);};}return P3.join(O3);}L3.exports=join;},function(R3,S3,T3){"use strict";function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}R3.exports=last;},function(U3,V3,W3){"use strict";function length(X3){return X3.length;}U3.exports=length;},function(Y3,Z3,a4){"use strict";function match(b4,c4){if(c4===void 0){return function(d4){return match(b4,d4);};}var e4=c4.match(b4);return e4===null?[]:e4;}Y3.exports=match;},function(f4,g4,h4){"use strict";function omit(i4,j4){if(j4===void 0){return function(k4){return omit(i4,k4);};}var l4={};for(key in j4){if(!i4.includes(key)){l4[key]=j4[key];}}return l4;}f4.exports=omit;},function(m4,n4,o4){"use strict";var p4=o4(0),q4=o4(6);function curry(fn){var s4=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(t4){if(p4(fn)==="Async"){return new Promise(function(u4,v4){fn(q4(t4,s4)).then(u4).catch(v4);});}return fn(q4(t4,s4));};}m4.exports=curry;},function(w4,x4,y4){"use strict";function path(z4,A4){if(A4===void 0){return function(B4){return path(z4,B4);};}var C4=A4,D4=0;if(typeof z4==="string"){z4=z4.split(".");}while(D4<z4.length){if(C4===null){return void 0;}C4=C4[z4[D4]];D4++;}return C4;}w4.exports=path;},function(E4,F4,G4){"use strict";function pick(H4,I4){if(I4===void 0){return function(J4){return pick(H4,J4);};}var K4={},L4=0;while(L4<H4.length){if(H4[L4]in I4){K4[H4[L4]]=I4[H4[L4]];}L4++;}return K4;}E4.exports=pick;},function(M4,N4,O4){"use strict";var P4=O4(5);function pluck(Q4,R4){if(R4===void 0){return function(S4){return pluck(Q4,S4);};}var T4=[];P4(function(U4){if(!(U4[Q4]===void 0)){T4.push(U4[Q4]);}},R4);return T4;}M4.exports=pluck;},function(V4,W4,X4){"use strict";function prepend(Y4,Z4){if(Z4===void 0){return function(a5){return prepend(Y4,a5);};}var b5=Z4.concat();b5.unshift(Y4);return b5;}V4.exports=prepend;},function(c5,d5,e5){"use strict";function prop(f5,g5){if(g5===void 0){return function(h5){return prop(f5,h5);};}return g5[f5];}c5.exports=prop;},function(i5,j5,k5){"use strict";function propEq(l5,m5,n5){if(m5===void 0){return function(o5,p5){return propEq(l5,o5,p5);};}else if(n5===void 0){return function(q5){return propEq(l5,m5,q5);};}return n5[l5]===m5;}i5.exports=propEq;},function(r5,s5,t5){"use strict";function range(u5,v5){for(var w5=[],i=u5;i<v5;i++){w5.push(i);}return w5;}r5.exports=range;},function(x5,y5,z5){"use strict";function reduce(fn,B5,C5){if(B5===void 0){return function(D5,E5){return reduce(fn,D5,E5);};}else if(C5===void 0){return function(F5){return reduce(fn,B5,F5);};}return C5.reduce(fn,B5);}x5.exports=reduce;},function(G5,H5,I5){"use strict";function repeat(a,J5){if(J5===void 0){return function(K5){return repeat(a,K5);};}var L5=Array(J5);return L5.fill(a);}G5.exports=repeat;},function(M5,N5,O5){"use strict";function replace(P5,Q5,R5){if(Q5===void 0){return function(S5,T5){return replace(P5,S5,T5);};}else if(R5===void 0){return function(U5){return replace(P5,Q5,U5);};}return R5.replace(P5,Q5);}M5.exports=replace;},function(V5,W5,X5){"use strict";function sort(fn,Z5){if(Z5===void 0){return function(a6){return sort(fn,a6);};}var b6=Z5.concat();return b6.sort(fn);}V5.exports=sort;},function(c6,d6,e6){"use strict";function sortBy(fn,g6){if(g6===void 0){return function(h6){return sortBy(fn,h6);};}var i6=g6.concat();return i6.sort(function(a,b){var j6=fn(a),k6=fn(b);return j6<k6?-1:j6>k6?1:0;});}c6.exports=sortBy;},function(l6,m6,n6){"use strict";function split(o6,p6){if(p6===void 0){return function(q6){return split(o6,q6);};}return p6.split(o6);}l6.exports=split;},function(r6,s6,t6){"use strict";function splitEvery(u6,a){if(a===void 0){return function(v6){return splitEvery(u6,v6);};}u6=u6>1?u6:1;var w6=[],x6=0;while(x6<a.length){w6.push(a.slice(x6,x6+=u6));}return w6;}r6.exports=splitEvery;},function(y6,z6,A6){"use strict";function subtract(a,b){if(b===void 0){return function(B6){return subtract(a,B6);};}return a-b;}y6.exports=subtract;},function(C6,D6,E6){"use strict";var F6=E6(3);function tail(G6){return F6(1,G6);}C6.exports=tail;},function(H6,I6,J6){"use strict";var K6=J6(1);function take(L6,a){if(a===void 0){return function(M6){return take(L6,M6);};}else if(typeof a==="string"){return a.slice(0,L6);}return K6(a,0,L6);}H6.exports=take;},function(N6,O6,P6){"use strict";var Q6=P6(1);function takeLast(R6,a){if(a===void 0){return function(S6){return takeLast(R6,S6);};}var T6=a.length;R6=R6>T6?T6:R6;if(typeof a==="string"){return a.slice(T6-R6);}R6=T6-R6;return Q6(a,R6,T6);}N6.exports=takeLast;},function(U6,V6,W6){"use strict";function test(X6,Y6){if(Y6===void 0){return function(Z6){return test(X6,Z6);};}return Y6.search(X6)===-1?!1:!0;}U6.exports=test;},function(a7,b7,c7){"use strict";function toLower(d7){return d7.toLowerCase();}a7.exports=toLower;},function(e7,f7,g7){"use strict";function toUpper(h7){return h7.toUpperCase();}e7.exports=toUpper;},function(i7,j7,k7){"use strict";function trim(l7){return l7.trim();}i7.exports=trim;},function(m7,n7,o7){"use strict";var p7=o7(2);function uniq(q7){var r7=-1,s7=[];while(++r7<q7.length){var t7=q7[r7];if(!p7(t7,s7)){s7.push(t7);}}return s7;}m7.exports=uniq;},function(u7,v7,w7){"use strict";function update(x7,y7,z7){if(y7===void 0){return function(A7,B7){return update(x7,A7,B7);};}else if(z7===void 0){return function(C7){return update(x7,y7,C7);};}var D7=z7.concat();return D7.fill(y7,x7,x7+1);}u7.exports=update;},function(E7,F7,G7){"use strict";function values(H7){var I7=[];for(key in H7){I7.push(H7[key]);}return I7;}E7.exports=values;},function(J7,K7,L7){"use strict";K7.add=L7(7);K7.addIndex=L7(8);K7.any=L7(10);K7.adjust=L7(9);K7.append=L7(11);K7.compose=L7(12);K7.contains=L7(2);K7.curry=L7(13);K7.defaultTo=L7(14);K7.drop=L7(3);K7.dropLast=L7(15);K7.equals=L7(4);K7.filter=L7(16);K7.find=L7(17);K7.findIndex=L7(18);K7.flatten=L7(19);K7.has=L7(20);K7.head=L7(21);K7.indexOf=L7(22);K7.init=L7(23);K7.join=L7(24);K7.last=L7(25);K7.length=L7(26);K7.map=L7(5);K7.match=L7(27);K7.merge=L7(6);K7.omit=L7(28);K7.path=L7(30);K7.partialCurry=L7(29);K7.pick=L7(31);K7.pluck=L7(32);K7.prepend=L7(33);K7.prop=L7(34);K7.propEq=L7(35);K7.range=L7(36);K7.repeat=L7(38);K7.replace=L7(39);K7.sort=L7(40);K7.sortBy=L7(41);K7.split=L7(42);K7.splitEvery=L7(43);K7.subtract=L7(44);K7.tail=L7(45);K7.take=L7(46);K7.takeLast=L7(47);K7.test=L7(48);K7.toLower=L7(49);K7.toUpper=L7(50);K7.trim=L7(51);K7.type=L7(0);K7.uniq=L7(52);K7.update=L7(53);K7.values=L7(54);K7.reduce=L7(37);}]);
// taken from the last comment of https://gist.github.com/mkuklis/5294248
function curry(f, a = []){
return (...p) => (o => o.length === f.length ? f(...o) : curry(f, o))([...a, ...p])
return (...p) => (o => o.length >= f.length ? f(...o) : curry(f, o))([...a, ...p])
}
module.exports = curry
{
"name": "rambda",
"version": "0.7.3",
"version": "0.7.4",
"description": "Lightweight alternative to Ramda",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,12 +6,10 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda)

Faster alternative to **Ramda** in just 10kB - [Documentation](https://selfrefactor.github.io/rambda/#/)
Faster alternative to `Ramda` in just 10kB - [Documentation](https://selfrefactor.github.io/rambda/#/)
## Argumentation
I admire ***Ramda*** as it is great library in what it does, but I used only small part of what it offers.
I admire `Ramda`, as it is great library in what it does. My main problem was its size. Even custom builds didn't deliver satisfactory results. Also I already had `Ramda` habits and I didn't want to switch to `Lodash`.
I wanted to optimize the size of my bundle, but I had already developed Ramda habits.
Then I realized that my best solution was to publish a library that recreates the functionality of some `Ramda` methods with less code.
This lead me to the idea to recreate the funtionality of some Ramda methods and export that as a library.
## Example use

@@ -22,6 +20,7 @@

const result = R.compose(
R.filter(val => val>2),
R.join("-"),
R.filter(a => a > 2),
R.flatten,
)([ [1], [2], [3], 4])
console.log(result) // => [3,4]
console.log(result) // => "3-4"
```

@@ -31,3 +30,3 @@

- Use **npm i rambda** for Webpack and Node.js
- Use **npm i rambda** for `Webpack` and `Node.js` usage

@@ -37,3 +36,3 @@ - For browser usage include in your HTML

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.7.2/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.7.4/webVersion.js
```

@@ -79,3 +78,6 @@

const mapWithIndex = R.addIndex(R.map)
mapWithIndex((val, index) => `${val} - ${index}`, ["A", "B", "C"]) // => ["A - 0", "B - 1", "C - 2"]
mapWithIndex(
(val, index) => `${val} - ${index}`,
["A", "B", "C"]
) // => ["A - 0", "B - 1", "C - 2"]
```

@@ -682,2 +684,3 @@

- 0.7.4 [issue #13](https://github.com/selfrefactor/rambda/issues/13) - Fix `R.curry`, which used to return incorrectly `function` when called with more arguments
- 0.7.3 Close [issue #9](https://github.com/selfrefactor/rambda/issues/9) - Compile to `es2015`; also [PR #10](https://github.com/selfrefactor/rambda/pull/10) - add `R.addIndex` to the API

@@ -689,2 +692,6 @@ - 0.7.2 Add `Promise` support for `R.type`

> PR
If you want to add another `Ramda` method to the API, please feel free to submit a `PR`
> Projects using Rambda

@@ -691,0 +698,0 @@

@@ -1,1 +0,1 @@

(function webpackUniversalModuleDefinition(d,e){if(typeof exports==='object'&&typeof module==='object')module.exports=e();else if(typeof define==='function'&&define.amd)define([],e);else{var a=e();for(var i in a)(typeof exports==='object'?exports:d)[i]=a[i];}})(this,function(){return function(g){var h={};function __webpack_require__(j){if(h[j]){return h[j].exports;}var k=h[j]={i:j,l:!1,exports:{}};g[j].call(k.exports,k,k.exports,__webpack_require__);k.l=!0;return k.exports;}__webpack_require__.m=g;__webpack_require__.c=h;__webpack_require__.i=function(l){return l;};__webpack_require__.d=function(m,n,q){if(!__webpack_require__.o(m,n)){Object.defineProperty(m,n,{configurable:!1,enumerable:!0,get:q});}};__webpack_require__.n=function(r){var s=r&&r.__esModule?function getDefault(){return r['default'];}:function getModuleExports(){return r;};__webpack_require__.d(s,'a',s);return s;};__webpack_require__.o=function(t,u){return Object.prototype.hasOwnProperty.call(t,u);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=8);}([function(v,w){function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}const x=a.toString();if(x.startsWith("async")){return"Async";}else if(x==="[object Promise]"){return"Promise";}else if(x.includes("function")||x.includes("=>")){return"Function";}return"Object";}v.exports=type;},function(y,z){function baseSlice(A,B,C){let D=-1,E=A.length;C=C>E?E:C;if(C<0){C+=E;}E=B>C?0:C-B>>>0;B>>>=0;const F=Array(E);while(++D<E){F[D]=A[D+B];}return F;}y.exports=baseSlice;},function(G,H,I){const J=I(4);function contains(K,L){if(L===void 0){return M=>contains(K,M);}let N=-1,O=!1;while(++N<L.length&&!O){if(J(L[N],K)){O=!0;}}return O;}G.exports=contains;},function(P,Q){function drop(R,a){if(a===void 0){return S=>drop(R,S);}return a.slice(R);}P.exports=drop;},function(T,U,V){const W=V(0);function equals(a,b){if(b===void 0){return X=>equals(a,X);}else if(a===b){return a!==0||1/a===1/b;}const Y=W(a);if(Y!==W(b)){return!1;}if(Y==="Array"){const Z=Array.from(a),a1=Array.from(b);return Z.sort().toString()===a1.sort().toString();}if(Y==="Object"){const b1=Object.keys(a);if(b1.length===Object.keys(b).length){if(b1.length===0){return!0;}let c1=!0;b1.map(d1=>{if(c1){const e1=W(a[d1]),f1=W(b[d1]);if(e1===f1){if(e1==="Object"){if(Object.keys(a[d1]).length===Object.keys(b[d1]).length){if(Object.keys(a[d1]).length!==0){if(!equals(a[d1],b[d1])){c1=!1;}}}else{c1=!1;}}else if(!equals(a[d1],b[d1])){c1=!1;}}else{c1=!1;}}});return c1;}}return!1;}T.exports=equals;},function(g1,h1){function map(fn,j1){if(j1===void 0){return k1=>map(fn,k1);}let l1=-1;const m1=j1.length,n1=Array(m1);while(++l1<m1){n1[l1]=fn(j1[l1]);}return n1;}g1.exports=map;},function(o1,p1){function merge(q1,r1){if(r1===void 0){return s1=>merge(q1,s1);}return Object.assign({},q1,r1);}o1.exports=merge;},function(t1,u1,v1){u1.add=v1(9);u1.addIndex=v1(10);u1.any=v1(12);u1.adjust=v1(11);u1.append=v1(13);u1.compose=v1(14);u1.contains=v1(2);u1.curry=v1(15);u1.defaultTo=v1(16);u1.drop=v1(3);u1.dropLast=v1(17);u1.equals=v1(4);u1.filter=v1(18);u1.find=v1(19);u1.findIndex=v1(20);u1.flatten=v1(21);u1.has=v1(22);u1.head=v1(23);u1.indexOf=v1(24);u1.init=v1(25);u1.join=v1(26);u1.last=v1(27);u1.length=v1(28);u1.map=v1(5);u1.match=v1(29);u1.merge=v1(6);u1.omit=v1(30);u1.path=v1(32);u1.partialCurry=v1(31);u1.pick=v1(33);u1.pluck=v1(34);u1.prepend=v1(35);u1.prop=v1(36);u1.propEq=v1(37);u1.range=v1(38);u1.repeat=v1(40);u1.replace=v1(41);u1.sort=v1(42);u1.sortBy=v1(43);u1.split=v1(44);u1.splitEvery=v1(45);u1.subtract=v1(46);u1.tail=v1(47);u1.take=v1(48);u1.takeLast=v1(49);u1.test=v1(50);u1.toLower=v1(51);u1.toUpper=v1(52);u1.trim=v1(53);u1.type=v1(0);u1.uniq=v1(54);u1.update=v1(55);u1.values=v1(56);u1.reduce=v1(39);},function(w1,x1,y1){const z1=y1(7);w1.exports.R=z1;},function(A1,B1){function add(a,b){if(b===void 0){return c=>add(a,c);}return a+b;}A1.exports=add;},function(C1,D1){function addIndex(E1){return function(fn,...rest){let G1=0;const newFn=(...args)=>fn.apply(null,[...args,G1++]);return E1.apply(null,[newFn,...rest]);};}C1.exports=addIndex;},function(H1,I1){function adjust(fn,K1,L1){if(K1===void 0){return(M1,N1)=>adjust(fn,M1,N1);}else if(L1===void 0){return O1=>adjust(fn,K1,O1);}const P1=L1.concat();return P1.map((Q1,R1)=>{if(R1===K1){return fn(L1[K1]);}return Q1;});}H1.exports=adjust;},function(S1,T1){function any(fn,V1){if(V1===void 0){return W1=>any(fn,W1);}let X1=0;while(X1<V1.length){if(fn(V1[X1])){return!0;}X1++;}return!1;}S1.exports=any;},function(Y1,Z1){function append(a2,b2){if(b2===void 0){return c2=>append(a2,c2);}const d2=b2.concat();d2.push(a2);return d2;}Y1.exports=append;},function(e2,f2){const compose=(...fns)=>g2=>{let h2=fns.slice();while(h2.length>0){g2=h2.pop()(g2);}return g2;};e2.exports=compose;},function(i2,j2){function curry(f,a=[]){return(...p)=>(o=>o.length===f.length?f(...o):curry(f,o))([...a,...p]);}i2.exports=curry;},function(k2,l2,m2){const n2=m2(0);function defaultTo(o2,p2){if(arguments.length===1){return q2=>defaultTo(o2,q2);}return p2===void 0||!(n2(p2)===n2(o2))?o2:p2;}k2.exports=defaultTo;},function(r2,s2){function dropLast(t2,a){if(a===void 0){return u2=>dropLast(t2,u2);}return a.slice(0,-t2);}r2.exports=dropLast;},function(v2,w2){function filter(fn,y2){if(y2===void 0){return z2=>filter(fn,z2);}let A2=-1,B2=0;const C2=y2.length,D2=[];while(++A2<C2){const E2=y2[A2];if(fn(E2)){D2[B2++]=E2;}}return D2;}v2.exports=filter;},function(F2,G2){function find(fn,I2){if(I2===void 0){return J2=>find(fn,J2);}return I2.find(fn);}F2.exports=find;},function(K2,L2){function findIndex(fn,N2){if(N2===void 0){return O2=>findIndex(fn,O2);}const P2=N2.length;let Q2=-1;while(++Q2<P2){if(fn(N2[Q2])){return Q2;}}return-1;}K2.exports=findIndex;},function(R2,S2){function flatten(T2,U2){U2=U2===void 0?[]:U2;for(let i=0;i<T2.length;i++){if(Array.isArray(T2[i])){flatten(T2[i],U2);}else{U2.push(T2[i]);}}return U2;}R2.exports=flatten;},function(V2,W2){function has(X2,Y2){if(Y2===void 0){return Z2=>has(X2,Z2);}return Y2[X2]!==void 0;}V2.exports=has;},function(a3,b3){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}a3.exports=head;},function(c3,d3){function indexOf(e3,f3){if(f3===void 0){return g3=>indexOf(e3,g3);}let h3=-1;const i3=f3.length;while(++h3<i3){if(f3[h3]===e3){return h3;}}return-1;}c3.exports=indexOf;},function(j3,k3,l3){const m3=l3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?m3(a,0,-1):[];}j3.exports=init;},function(n3,o3){function join(p3,q3){if(q3===void 0){return r3=>join(p3,r3);}return q3.join(p3);}n3.exports=join;},function(s3,t3){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}s3.exports=last;},function(u3,v3){function length(w3){return w3.length;}u3.exports=length;},function(x3,y3){function match(z3,A3){if(A3===void 0){return B3=>match(z3,B3);}const C3=A3.match(z3);return C3===null?[]:C3;}x3.exports=match;},function(D3,E3){function omit(F3,G3){if(G3===void 0){return H3=>omit(F3,H3);}const I3={};for(key in G3){if(!F3.includes(key)){I3[key]=G3[key];}}return I3;}D3.exports=omit;},function(J3,K3,L3){const M3=L3(0),N3=L3(6);function curry(fn,P3={}){return Q3=>{if(M3(fn)==="Async"){return new Promise((R3,S3)=>{fn(N3(Q3,P3)).then(R3).catch(S3);});}return fn(N3(Q3,P3));};}J3.exports=curry;},function(T3,U3){function path(V3,W3){if(W3===void 0){return X3=>path(V3,X3);}let Y3=W3,Z3=0;if(typeof V3==="string"){V3=V3.split(".");}while(Z3<V3.length){if(Y3===null){return void 0;}Y3=Y3[V3[Z3]];Z3++;}return Y3;}T3.exports=path;},function(a4,b4){function pick(c4,d4){if(d4===void 0){return e4=>pick(c4,e4);}const f4={};let g4=0;while(g4<c4.length){if(c4[g4]in d4){f4[c4[g4]]=d4[c4[g4]];}g4++;}return f4;}a4.exports=pick;},function(h4,i4,j4){const k4=j4(5);function pluck(l4,m4){if(m4===void 0){return n4=>pluck(l4,n4);}const o4=[];k4(p4=>{if(!(p4[l4]===void 0)){o4.push(p4[l4]);}},m4);return o4;}h4.exports=pluck;},function(q4,r4){function prepend(s4,t4){if(t4===void 0){return u4=>prepend(s4,u4);}const v4=t4.concat();v4.unshift(s4);return v4;}q4.exports=prepend;},function(w4,x4){function prop(y4,z4){if(z4===void 0){return A4=>prop(y4,A4);}return z4[y4];}w4.exports=prop;},function(B4,C4){function propEq(D4,E4,F4){if(E4===void 0){return(G4,H4)=>propEq(D4,G4,H4);}else if(F4===void 0){return I4=>propEq(D4,E4,I4);}return F4[D4]===E4;}B4.exports=propEq;},function(J4,K4){function range(L4,M4){const N4=[];for(let i=L4;i<M4;i++){N4.push(i);}return N4;}J4.exports=range;},function(O4,P4){function reduce(fn,R4,S4){if(R4===void 0){return(T4,U4)=>reduce(fn,T4,U4);}else if(S4===void 0){return V4=>reduce(fn,R4,V4);}return S4.reduce(fn,R4);}O4.exports=reduce;},function(W4,X4){function repeat(a,Y4){if(Y4===void 0){return Z4=>repeat(a,Z4);}const a5=Array(Y4);return a5.fill(a);}W4.exports=repeat;},function(b5,c5){function replace(d5,e5,f5){if(e5===void 0){return(g5,h5)=>replace(d5,g5,h5);}else if(f5===void 0){return i5=>replace(d5,e5,i5);}return f5.replace(d5,e5);}b5.exports=replace;},function(j5,k5){function sort(fn,m5){if(m5===void 0){return n5=>sort(fn,n5);}const o5=m5.concat();return o5.sort(fn);}j5.exports=sort;},function(p5,q5){function sortBy(fn,s5){if(s5===void 0){return t5=>sortBy(fn,t5);}const u5=s5.concat();return u5.sort((a,b)=>{const v5=fn(a),w5=fn(b);return v5<w5?-1:v5>w5?1:0;});}p5.exports=sortBy;},function(x5,y5){function split(z5,A5){if(A5===void 0){return B5=>split(z5,B5);}return A5.split(z5);}x5.exports=split;},function(C5,D5){function splitEvery(E5,a){if(a===void 0){return F5=>splitEvery(E5,F5);}E5=E5>1?E5:1;const G5=[];let H5=0;while(H5<a.length){G5.push(a.slice(H5,H5+=E5));}return G5;}C5.exports=splitEvery;},function(I5,J5){function subtract(a,b){if(b===void 0){return K5=>subtract(a,K5);}return a-b;}I5.exports=subtract;},function(L5,M5,N5){const O5=N5(3);function tail(P5){return O5(1,P5);}L5.exports=tail;},function(Q5,R5,S5){const T5=S5(1);function take(U5,a){if(a===void 0){return V5=>take(U5,V5);}else if(typeof a==="string"){return a.slice(0,U5);}return T5(a,0,U5);}Q5.exports=take;},function(W5,X5,Y5){const Z5=Y5(1);function takeLast(a6,a){if(a===void 0){return b6=>takeLast(a6,b6);}const c6=a.length;a6=a6>c6?c6:a6;if(typeof a==="string"){return a.slice(c6-a6);}a6=c6-a6;return Z5(a,a6,c6);}W5.exports=takeLast;},function(d6,e6){function test(f6,g6){if(g6===void 0){return h6=>test(f6,h6);}return g6.search(f6)===-1?!1:!0;}d6.exports=test;},function(i6,j6){function toLower(k6){return k6.toLowerCase();}i6.exports=toLower;},function(l6,m6){function toUpper(n6){return n6.toUpperCase();}l6.exports=toUpper;},function(o6,p6){function trim(q6){return q6.trim();}o6.exports=trim;},function(r6,s6,t6){const u6=t6(2);function uniq(v6){let w6=-1;const x6=[];while(++w6<v6.length){const y6=v6[w6];if(!u6(y6,x6)){x6.push(y6);}}return x6;}r6.exports=uniq;},function(z6,A6){function update(B6,C6,D6){if(C6===void 0){return(E6,F6)=>update(B6,E6,F6);}else if(D6===void 0){return G6=>update(B6,C6,G6);}const H6=D6.concat();return H6.fill(C6,B6,B6+1);}z6.exports=update;},function(I6,J6){function values(K6){const L6=[];for(key in K6){L6.push(K6[key]);}return L6;}I6.exports=values;}]);});
(function webpackUniversalModuleDefinition(d,e){if(typeof exports==='object'&&typeof module==='object')module.exports=e();else if(typeof define==='function'&&define.amd)define([],e);else{var a=e();for(var i in a)(typeof exports==='object'?exports:d)[i]=a[i];}})(this,function(){return function(g){var h={};function __webpack_require__(j){if(h[j]){return h[j].exports;}var k=h[j]={i:j,l:!1,exports:{}};g[j].call(k.exports,k,k.exports,__webpack_require__);k.l=!0;return k.exports;}__webpack_require__.m=g;__webpack_require__.c=h;__webpack_require__.i=function(l){return l;};__webpack_require__.d=function(m,n,q){if(!__webpack_require__.o(m,n)){Object.defineProperty(m,n,{configurable:!1,enumerable:!0,get:q});}};__webpack_require__.n=function(r){var s=r&&r.__esModule?function getDefault(){return r['default'];}:function getModuleExports(){return r;};__webpack_require__.d(s,'a',s);return s;};__webpack_require__.o=function(t,u){return Object.prototype.hasOwnProperty.call(t,u);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=8);}([function(v,w){function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}const x=a.toString();if(x.startsWith("async")){return"Async";}else if(x==="[object Promise]"){return"Promise";}else if(x.includes("function")||x.includes("=>")){return"Function";}return"Object";}v.exports=type;},function(y,z){function baseSlice(A,B,C){let D=-1,E=A.length;C=C>E?E:C;if(C<0){C+=E;}E=B>C?0:C-B>>>0;B>>>=0;const F=Array(E);while(++D<E){F[D]=A[D+B];}return F;}y.exports=baseSlice;},function(G,H,I){const J=I(4);function contains(K,L){if(L===void 0){return M=>contains(K,M);}let N=-1,O=!1;while(++N<L.length&&!O){if(J(L[N],K)){O=!0;}}return O;}G.exports=contains;},function(P,Q){function drop(R,a){if(a===void 0){return S=>drop(R,S);}return a.slice(R);}P.exports=drop;},function(T,U,V){const W=V(0);function equals(a,b){if(b===void 0){return X=>equals(a,X);}else if(a===b){return a!==0||1/a===1/b;}const Y=W(a);if(Y!==W(b)){return!1;}if(Y==="Array"){const Z=Array.from(a),a1=Array.from(b);return Z.sort().toString()===a1.sort().toString();}if(Y==="Object"){const b1=Object.keys(a);if(b1.length===Object.keys(b).length){if(b1.length===0){return!0;}let c1=!0;b1.map(d1=>{if(c1){const e1=W(a[d1]),f1=W(b[d1]);if(e1===f1){if(e1==="Object"){if(Object.keys(a[d1]).length===Object.keys(b[d1]).length){if(Object.keys(a[d1]).length!==0){if(!equals(a[d1],b[d1])){c1=!1;}}}else{c1=!1;}}else if(!equals(a[d1],b[d1])){c1=!1;}}else{c1=!1;}}});return c1;}}return!1;}T.exports=equals;},function(g1,h1){function map(fn,j1){if(j1===void 0){return k1=>map(fn,k1);}let l1=-1;const m1=j1.length,n1=Array(m1);while(++l1<m1){n1[l1]=fn(j1[l1]);}return n1;}g1.exports=map;},function(o1,p1){function merge(q1,r1){if(r1===void 0){return s1=>merge(q1,s1);}return Object.assign({},q1,r1);}o1.exports=merge;},function(t1,u1,v1){u1.add=v1(9);u1.addIndex=v1(10);u1.any=v1(12);u1.adjust=v1(11);u1.append=v1(13);u1.compose=v1(14);u1.contains=v1(2);u1.curry=v1(15);u1.defaultTo=v1(16);u1.drop=v1(3);u1.dropLast=v1(17);u1.equals=v1(4);u1.filter=v1(18);u1.find=v1(19);u1.findIndex=v1(20);u1.flatten=v1(21);u1.has=v1(22);u1.head=v1(23);u1.indexOf=v1(24);u1.init=v1(25);u1.join=v1(26);u1.last=v1(27);u1.length=v1(28);u1.map=v1(5);u1.match=v1(29);u1.merge=v1(6);u1.omit=v1(30);u1.path=v1(32);u1.partialCurry=v1(31);u1.pick=v1(33);u1.pluck=v1(34);u1.prepend=v1(35);u1.prop=v1(36);u1.propEq=v1(37);u1.range=v1(38);u1.repeat=v1(40);u1.replace=v1(41);u1.sort=v1(42);u1.sortBy=v1(43);u1.split=v1(44);u1.splitEvery=v1(45);u1.subtract=v1(46);u1.tail=v1(47);u1.take=v1(48);u1.takeLast=v1(49);u1.test=v1(50);u1.toLower=v1(51);u1.toUpper=v1(52);u1.trim=v1(53);u1.type=v1(0);u1.uniq=v1(54);u1.update=v1(55);u1.values=v1(56);u1.reduce=v1(39);},function(w1,x1,y1){const z1=y1(7);w1.exports.R=z1;},function(A1,B1){function add(a,b){if(b===void 0){return c=>add(a,c);}return a+b;}A1.exports=add;},function(C1,D1){function addIndex(E1){return function(fn,...rest){let G1=0;const newFn=(...args)=>fn.apply(null,[...args,G1++]);return E1.apply(null,[newFn,...rest]);};}C1.exports=addIndex;},function(H1,I1){function adjust(fn,K1,L1){if(K1===void 0){return(M1,N1)=>adjust(fn,M1,N1);}else if(L1===void 0){return O1=>adjust(fn,K1,O1);}const P1=L1.concat();return P1.map((Q1,R1)=>{if(R1===K1){return fn(L1[K1]);}return Q1;});}H1.exports=adjust;},function(S1,T1){function any(fn,V1){if(V1===void 0){return W1=>any(fn,W1);}let X1=0;while(X1<V1.length){if(fn(V1[X1])){return!0;}X1++;}return!1;}S1.exports=any;},function(Y1,Z1){function append(a2,b2){if(b2===void 0){return c2=>append(a2,c2);}const d2=b2.concat();d2.push(a2);return d2;}Y1.exports=append;},function(e2,f2){const compose=(...fns)=>g2=>{let h2=fns.slice();while(h2.length>0){g2=h2.pop()(g2);}return g2;};e2.exports=compose;},function(i2,j2){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}i2.exports=curry;},function(k2,l2,m2){const n2=m2(0);function defaultTo(o2,p2){if(arguments.length===1){return q2=>defaultTo(o2,q2);}return p2===void 0||!(n2(p2)===n2(o2))?o2:p2;}k2.exports=defaultTo;},function(r2,s2){function dropLast(t2,a){if(a===void 0){return u2=>dropLast(t2,u2);}return a.slice(0,-t2);}r2.exports=dropLast;},function(v2,w2){function filter(fn,y2){if(y2===void 0){return z2=>filter(fn,z2);}let A2=-1,B2=0;const C2=y2.length,D2=[];while(++A2<C2){const E2=y2[A2];if(fn(E2)){D2[B2++]=E2;}}return D2;}v2.exports=filter;},function(F2,G2){function find(fn,I2){if(I2===void 0){return J2=>find(fn,J2);}return I2.find(fn);}F2.exports=find;},function(K2,L2){function findIndex(fn,N2){if(N2===void 0){return O2=>findIndex(fn,O2);}const P2=N2.length;let Q2=-1;while(++Q2<P2){if(fn(N2[Q2])){return Q2;}}return-1;}K2.exports=findIndex;},function(R2,S2){function flatten(T2,U2){U2=U2===void 0?[]:U2;for(let i=0;i<T2.length;i++){if(Array.isArray(T2[i])){flatten(T2[i],U2);}else{U2.push(T2[i]);}}return U2;}R2.exports=flatten;},function(V2,W2){function has(X2,Y2){if(Y2===void 0){return Z2=>has(X2,Z2);}return Y2[X2]!==void 0;}V2.exports=has;},function(a3,b3){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}a3.exports=head;},function(c3,d3){function indexOf(e3,f3){if(f3===void 0){return g3=>indexOf(e3,g3);}let h3=-1;const i3=f3.length;while(++h3<i3){if(f3[h3]===e3){return h3;}}return-1;}c3.exports=indexOf;},function(j3,k3,l3){const m3=l3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?m3(a,0,-1):[];}j3.exports=init;},function(n3,o3){function join(p3,q3){if(q3===void 0){return r3=>join(p3,r3);}return q3.join(p3);}n3.exports=join;},function(s3,t3){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}s3.exports=last;},function(u3,v3){function length(w3){return w3.length;}u3.exports=length;},function(x3,y3){function match(z3,A3){if(A3===void 0){return B3=>match(z3,B3);}const C3=A3.match(z3);return C3===null?[]:C3;}x3.exports=match;},function(D3,E3){function omit(F3,G3){if(G3===void 0){return H3=>omit(F3,H3);}const I3={};for(key in G3){if(!F3.includes(key)){I3[key]=G3[key];}}return I3;}D3.exports=omit;},function(J3,K3,L3){const M3=L3(0),N3=L3(6);function curry(fn,P3={}){return Q3=>{if(M3(fn)==="Async"){return new Promise((R3,S3)=>{fn(N3(Q3,P3)).then(R3).catch(S3);});}return fn(N3(Q3,P3));};}J3.exports=curry;},function(T3,U3){function path(V3,W3){if(W3===void 0){return X3=>path(V3,X3);}let Y3=W3,Z3=0;if(typeof V3==="string"){V3=V3.split(".");}while(Z3<V3.length){if(Y3===null){return void 0;}Y3=Y3[V3[Z3]];Z3++;}return Y3;}T3.exports=path;},function(a4,b4){function pick(c4,d4){if(d4===void 0){return e4=>pick(c4,e4);}const f4={};let g4=0;while(g4<c4.length){if(c4[g4]in d4){f4[c4[g4]]=d4[c4[g4]];}g4++;}return f4;}a4.exports=pick;},function(h4,i4,j4){const k4=j4(5);function pluck(l4,m4){if(m4===void 0){return n4=>pluck(l4,n4);}const o4=[];k4(p4=>{if(!(p4[l4]===void 0)){o4.push(p4[l4]);}},m4);return o4;}h4.exports=pluck;},function(q4,r4){function prepend(s4,t4){if(t4===void 0){return u4=>prepend(s4,u4);}const v4=t4.concat();v4.unshift(s4);return v4;}q4.exports=prepend;},function(w4,x4){function prop(y4,z4){if(z4===void 0){return A4=>prop(y4,A4);}return z4[y4];}w4.exports=prop;},function(B4,C4){function propEq(D4,E4,F4){if(E4===void 0){return(G4,H4)=>propEq(D4,G4,H4);}else if(F4===void 0){return I4=>propEq(D4,E4,I4);}return F4[D4]===E4;}B4.exports=propEq;},function(J4,K4){function range(L4,M4){const N4=[];for(let i=L4;i<M4;i++){N4.push(i);}return N4;}J4.exports=range;},function(O4,P4){function reduce(fn,R4,S4){if(R4===void 0){return(T4,U4)=>reduce(fn,T4,U4);}else if(S4===void 0){return V4=>reduce(fn,R4,V4);}return S4.reduce(fn,R4);}O4.exports=reduce;},function(W4,X4){function repeat(a,Y4){if(Y4===void 0){return Z4=>repeat(a,Z4);}const a5=Array(Y4);return a5.fill(a);}W4.exports=repeat;},function(b5,c5){function replace(d5,e5,f5){if(e5===void 0){return(g5,h5)=>replace(d5,g5,h5);}else if(f5===void 0){return i5=>replace(d5,e5,i5);}return f5.replace(d5,e5);}b5.exports=replace;},function(j5,k5){function sort(fn,m5){if(m5===void 0){return n5=>sort(fn,n5);}const o5=m5.concat();return o5.sort(fn);}j5.exports=sort;},function(p5,q5){function sortBy(fn,s5){if(s5===void 0){return t5=>sortBy(fn,t5);}const u5=s5.concat();return u5.sort((a,b)=>{const v5=fn(a),w5=fn(b);return v5<w5?-1:v5>w5?1:0;});}p5.exports=sortBy;},function(x5,y5){function split(z5,A5){if(A5===void 0){return B5=>split(z5,B5);}return A5.split(z5);}x5.exports=split;},function(C5,D5){function splitEvery(E5,a){if(a===void 0){return F5=>splitEvery(E5,F5);}E5=E5>1?E5:1;const G5=[];let H5=0;while(H5<a.length){G5.push(a.slice(H5,H5+=E5));}return G5;}C5.exports=splitEvery;},function(I5,J5){function subtract(a,b){if(b===void 0){return K5=>subtract(a,K5);}return a-b;}I5.exports=subtract;},function(L5,M5,N5){const O5=N5(3);function tail(P5){return O5(1,P5);}L5.exports=tail;},function(Q5,R5,S5){const T5=S5(1);function take(U5,a){if(a===void 0){return V5=>take(U5,V5);}else if(typeof a==="string"){return a.slice(0,U5);}return T5(a,0,U5);}Q5.exports=take;},function(W5,X5,Y5){const Z5=Y5(1);function takeLast(a6,a){if(a===void 0){return b6=>takeLast(a6,b6);}const c6=a.length;a6=a6>c6?c6:a6;if(typeof a==="string"){return a.slice(c6-a6);}a6=c6-a6;return Z5(a,a6,c6);}W5.exports=takeLast;},function(d6,e6){function test(f6,g6){if(g6===void 0){return h6=>test(f6,h6);}return g6.search(f6)===-1?!1:!0;}d6.exports=test;},function(i6,j6){function toLower(k6){return k6.toLowerCase();}i6.exports=toLower;},function(l6,m6){function toUpper(n6){return n6.toUpperCase();}l6.exports=toUpper;},function(o6,p6){function trim(q6){return q6.trim();}o6.exports=trim;},function(r6,s6,t6){const u6=t6(2);function uniq(v6){let w6=-1;const x6=[];while(++w6<v6.length){const y6=v6[w6];if(!u6(y6,x6)){x6.push(y6);}}return x6;}r6.exports=uniq;},function(z6,A6){function update(B6,C6,D6){if(C6===void 0){return(E6,F6)=>update(B6,E6,F6);}else if(D6===void 0){return G6=>update(B6,C6,G6);}const H6=D6.concat();return H6.fill(C6,B6,B6+1);}z6.exports=update;},function(I6,J6){function values(K6){const L6=[];for(key in K6){L6.push(K6[key]);}return L6;}I6.exports=values;}]);});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc