Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "rambda", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Lightweight alternative to Ramda", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,1 +0,1 @@ | ||
(function(d){var e={};function __webpack_require__(f){if(e[f])return e[f].exports;var g=e[f]={i:f,l:!1,exports:{}};d[f].call(g.exports,g,g.exports,__webpack_require__);g.l=!0;return g.exports;}__webpack_require__.m=d;__webpack_require__.c=e;__webpack_require__.i=function(h){return h;};__webpack_require__.d=function(j,k,l){if(!__webpack_require__.o(j,k)){Object.defineProperty(j,k,{configurable:!1,enumerable:!0,get:l});}};__webpack_require__.n=function(m){var n=m&&m.__esModule?function getDefault(){return m['default'];}:function getModuleExports(){return m;};__webpack_require__.d(n,'a',n);return n;};__webpack_require__.o=function(o,p){return Object.prototype.hasOwnProperty.call(o,p);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=0);})([function(q,r){const add=(a,b)=>{if(b===void 0){return c=>add(a,c);}return a+b;},adjust=(s,t,u)=>{if(t===void 0){return(v,w)=>adjust(s,v,w);}else if(u===void 0){return x=>adjust(s,t,x);}return u.map((y,z)=>{if(z===t){return s(u[t]);}return y;});},any=(A,B)=>{if(B===void 0){return C=>any(A,C);}let D=0;while(D<B.length){if(A(B[D])){return!0;}D++;}return!1;},append=(E,F)=>{if(F===void 0){return G=>append(E,G);}const H=F;H.unshift(E);return H;},isFunction=I=>typeof I==="function";function compose(){const J=arguments;let K=J.length;while(K--){if(!isFunction(J[K])){throw new TypeError();}}return function(){let L=arguments,M=J.length;while(M--){L=[J[M].apply(this,L)];}return L[0];};}const contains=(N,O)=>{if(O===void 0){return P=>contains(N,P);}return any(Q=>N===Q,O);},filter=(R,S)=>{if(S===void 0){return T=>filter(R,T);}let U=-1,V=0;const W=S===null?0:S.length,X=[];while(++U<W){const Y=S[U];if(R(Y)){X[V++]=Y;}}return X;},find=(Z,a1)=>{if(a1===void 0){return b1=>find(Z,b1);}return a1.find(Z);},findIndex=(fn,d1)=>{if(d1===void 0){return e1=>findIndex(fn,e1);}const f1=d1.length;let g1=0;while(++g1<f1){if(fn(d1[g1])){return g1;}}return-1;},flatten=(h1,i1)=>{i1=i1===void 0?[]:i1;for(let i=0;i<h1.length;i++){if(Array.isArray(h1[i])){flatten(h1[i],i1);}else{i1.push(h1[i]);}}return i1;},drop=(j1,k1)=>{if(k1===void 0){return l1=>drop(j1,l1);}const m1=k1;return m1.slice(j1);},dropLast=(n1,o1)=>{if(o1===void 0){return p1=>dropLast(n1,p1);}const q1=o1;return q1.slice(0,-n1);},equals=(a,b)=>{if(b===void 0){return r1=>equals(a,r1);}else if(a===b){return a!==0||1/a===1/b;}const s1=type(a);if(s1!==type(b)){return!1;}if(s1==="Array"){const t1=a,u1=b;return t1.sort().toString()===u1.sort().toString();}if(s1==="Object"){const v1=Object.keys(a);if(v1.length===Object.keys(b).length){if(v1.length===0){return!0;}let w1=!0;v1.map(x1=>{if(w1){const y1=type(a[x1]),z1=type(b[x1]);if(y1===z1){if(y1==="Object"){if(Object.keys(a[x1]).length===Object.keys(b[x1]).length){if(Object.keys(a[x1]).length!==0){if(!equals(a[x1],b[x1])){w1=!1;}}}else{w1=!1;}}else if(!equals(a[x1],b[x1])){w1=!1;}}else{w1=!1;}}});return w1;}}return!1;},head=a=>{if(typeof a==="string"){return a[0]||"";}return a[0];},indexOf=(A1,B1)=>{if(B1===void 0){return C1=>indexOf(A1,C1);}let D1=-1;const E1=B1.length;while(++D1<E1){if(B1[D1]===A1){return D1;}}return-1;},baseSlice=(F1,G1,H1)=>{let I1=-1,J1=F1.length;if(G1<0){G1=-G1>J1?0:J1+G1;}H1=H1>J1?J1:H1;if(H1<0){H1+=J1;}J1=G1>H1?0:H1-G1>>>0;G1>>>=0;const K1=Array(J1);while(++I1<J1){K1[I1]=F1[I1+G1];}return K1;},init=a=>{if(typeof a==="string"){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];},join=(L1,M1)=>{if(M1===void 0){return N1=>join(L1,N1);}return M1.join(L1);},map=(fn,P1)=>{if(P1===void 0){return Q1=>map(fn,Q1);}return P1.map(fn);},last=R1=>R1[R1.length-1],length=S1=>S1.length,match=(T1,U1)=>{if(U1===void 0){return V1=>match(T1,V1);}const W1=U1.match(T1);return W1===null?[]:W1;},merge=(X1,Y1)=>{if(Y1===void 0){return Z1=>merge(X1,Z1);}return Object.assign({},X1,Y1);},omit=(a2,b2)=>{if(b2===void 0){return c2=>omit(a2,c2);}const d2={};for(key in b2){if(!a2.includes(key)){d2[key]=b2[key];}}return d2;},path=(e2,f2)=>{if(f2===void 0){return g2=>path(e2,g2);}let h2=f2,i2=0;while(i2<e2.length){if(h2===null){return void 0;}h2=h2[e2[i2]];i2++;}return h2;},prepend=(j2,k2)=>{if(k2===void 0){return l2=>prepend(j2,l2);}const m2=k2;m2.push(j2);return m2;},pick=(n2,o2)=>{if(o2===void 0){return p2=>pick(n2,p2);}const q2={};for(key in o2){if(n2.includes(key)){q2[key]=o2[key];}}return q2;},prop=(r2,s2)=>{if(s2===void 0){return t2=>prop(r2,t2);}return s2[r2];},propEq=(u2,v2,w2)=>{if(v2===void 0){return(x2,y2)=>propEq(u2,x2,y2);}else if(w2===void 0){return z2=>propEq(u2,v2,z2);}return w2[u2]===v2;},range=(A2,B2)=>{const C2=[];for(let i=A2;i<B2;i++){C2.push(i);}return C2;},repeat=(a,D2)=>{if(D2===void 0){return E2=>repeat(a,E2);}const F2=range(0,D2);return F2.fill(a);},replace=(G2,H2,I2)=>{if(H2===void 0){return(J2,K2)=>replace(G2,J2,K2);}else if(I2===void 0){return L2=>replace(G2,H2,L2);}return I2.replace(G2,H2);},subtract=(a,b)=>{if(b===void 0){return c=>subtract(a,c);}return a-b;},sort=(fn,N2)=>{if(N2===void 0){return O2=>sort(fn,O2);}const P2=N2;return P2.sort(fn);},sortBy=(fn,R2)=>{if(R2===void 0){return S2=>sortBy(fn,S2);}const T2=R2;return T2.sort((a,b)=>{const U2=fn(a),V2=fn(b);return U2<V2?-1:U2>V2?1:0;});},split=(W2,X2)=>{if(X2===void 0){return Y2=>split(W2,Y2);}return X2.split(W2);},splitEvery=(Z2,a)=>{if(a===void 0){return a3=>splitEvery(Z2,a3);}Z2=Z2>1?Z2:1;const b3=[];let c3=0;while(c3<a.length){b3.push(a.slice(c3,c3+=Z2));}return b3;},tail=d3=>drop(1,d3),take=(e3,f3)=>{if(f3===void 0){return g3=>take(e3,g3);}const h3=f3;return h3.slice(0,e3);},takeLast=(i3,j3)=>{if(j3===void 0){return k3=>dropLast(i3,k3);}const l3=j3;i3=i3>l3.length?l3.length:i3;return l3.slice(l3.length-i3);},toLower=a=>a.toLowerCase(),toUpper=a=>a.toUpperCase(),test=(m3,n3)=>{if(n3===void 0){return o3=>test(m3,o3);}return n3.search(m3)===-1?!1:!0;},trim=p3=>p3.trim(),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";}return"Object";},values=q3=>{const r3=[];for(key in q3){r3.push(q3[key]);}return r3;},uniq=s3=>{const t3=[];return s3.filter(u3=>{if(t3.includes(u3)){return!1;}t3.push(u3);return!0;});},update=(v3,w3,x3)=>{if(w3===void 0){return(y3,z3)=>update(v3,y3,z3);}else if(x3===void 0){return A3=>update(v3,w3,A3);}return x3.fill(v3,w3,w3+1);};q.exports.add=add;q.exports.adjust=adjust;q.exports.any=any;q.exports.append=append;q.exports.compose=compose;q.exports.contains=contains;q.exports.drop=drop;q.exports.dropLast=dropLast;q.exports.equals=equals;q.exports.filter=filter;q.exports.find=find;q.exports.findIndex=findIndex;q.exports.flatten=flatten;q.exports.head=head;q.exports.indexOf=indexOf;q.exports.init=init;q.exports.join=join;q.exports.last=last;q.exports.length=length;q.exports.map=map;q.exports.match=match;q.exports.merge=merge;q.exports.omit=omit;q.exports.path=path;q.exports.pick=pick;q.exports.prepend=prepend;q.exports.prop=prop;q.exports.propEq=propEq;q.exports.range=range;q.exports.repeat=repeat;q.exports.replace=replace;q.exports.sort=sort;q.exports.sortBy=sortBy;q.exports.split=split;q.exports.splitEvery=splitEvery;q.exports.subtract=subtract;q.exports.tail=tail;q.exports.take=take;q.exports.takeLast=takeLast;q.exports.test=test;q.exports.toLower=toLower;q.exports.toUpper=toUpper;q.exports.trim=trim;q.exports.type=type;q.exports.uniq=uniq;q.exports.update=update;q.exports.values=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(f){var g={};function __webpack_require__(h){if(g[h])return g[h].exports;var j=g[h]={i:h,l:!1,exports:{}};f[h].call(j.exports,j,j.exports,__webpack_require__);j.l=!0;return j.exports;}__webpack_require__.m=f;__webpack_require__.c=g;__webpack_require__.i=function(k){return k;};__webpack_require__.d=function(l,m,n){if(!__webpack_require__.o(l,m)){Object.defineProperty(l,m,{configurable:!1,enumerable:!0,get:n});}};__webpack_require__.n=function(o){var p=o&&o.__esModule?function getDefault(){return o['default'];}:function getModuleExports(){return o;};__webpack_require__.d(p,'a',p);return p;};__webpack_require__.o=function(q,r){return Object.prototype.hasOwnProperty.call(q,r);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=1);}([function(s,t){const add=(a,b)=>{if(b===void 0){return c=>add(a,c);}return a+b;},adjust=(u,v,w)=>{if(v===void 0){return(x,y)=>adjust(u,x,y);}else if(w===void 0){return z=>adjust(u,v,z);}return w.map((A,B)=>{if(B===v){return u(w[v]);}return A;});},any=(C,D)=>{if(D===void 0){return E=>any(C,E);}let F=0;while(F<D.length){if(C(D[F])){return!0;}F++;}return!1;},append=(G,H)=>{if(H===void 0){return I=>append(G,I);}const J=H;J.unshift(G);return J;},isFunction=K=>typeof K==="function";function compose(){const L=arguments;let M=L.length;while(M--){if(!isFunction(L[M])){throw new TypeError();}}return function(){let N=arguments,O=L.length;while(O--){N=[L[O].apply(this,N)];}return N[0];};}const contains=(P,Q)=>{if(Q===void 0){return S=>contains(P,S);}return any(T=>P===T,Q);},filter=(U,V)=>{if(V===void 0){return W=>filter(U,W);}let X=-1,Y=0;const Z=V===null?0:V.length,a1=[];while(++X<Z){const b1=V[X];if(U(b1)){a1[Y++]=b1;}}return a1;},find=(fn,d1)=>{if(d1===void 0){return e1=>find(fn,e1);}return d1.find(fn);},findIndex=(fn,g1)=>{if(g1===void 0){return h1=>findIndex(fn,h1);}const i1=g1.length;let j1=0;while(++j1<i1){if(fn(g1[j1])){return j1;}}return-1;},flatten=(k1,l1)=>{l1=l1===void 0?[]:l1;for(let i=0;i<k1.length;i++){if(Array.isArray(k1[i])){flatten(k1[i],l1);}else{l1.push(k1[i]);}}return l1;},drop=(m1,n1)=>{if(n1===void 0){return o1=>drop(m1,o1);}const p1=n1;return p1.slice(m1);},dropLast=(q1,r1)=>{if(r1===void 0){return s1=>dropLast(q1,s1);}const t1=r1;return t1.slice(0,-q1);},equals=(a,b)=>{if(b===void 0){return u1=>equals(a,u1);}else if(a===b){return a!==0||1/a===1/b;}const v1=type(a);if(v1!==type(b)){return!1;}if(v1==="Array"){const w1=a,x1=b;return w1.sort().toString()===x1.sort().toString();}if(v1==="Object"){const y1=Object.keys(a);if(y1.length===Object.keys(b).length){if(y1.length===0){return!0;}let z1=!0;y1.map(A1=>{if(z1){const B1=type(a[A1]),C1=type(b[A1]);if(B1===C1){if(B1==="Object"){if(Object.keys(a[A1]).length===Object.keys(b[A1]).length){if(Object.keys(a[A1]).length!==0){if(!equals(a[A1],b[A1])){z1=!1;}}}else{z1=!1;}}else if(!equals(a[A1],b[A1])){z1=!1;}}else{z1=!1;}}});return z1;}}return!1;},head=a=>{if(typeof a==="string"){return a[0]||"";}return a[0];},indexOf=(D1,E1)=>{if(E1===void 0){return F1=>indexOf(D1,F1);}let G1=-1;const H1=E1.length;while(++G1<H1){if(E1[G1]===D1){return G1;}}return-1;},baseSlice=(I1,J1,K1)=>{let L1=-1,M1=I1.length;if(J1<0){J1=-J1>M1?0:M1+J1;}K1=K1>M1?M1:K1;if(K1<0){K1+=M1;}M1=J1>K1?0:K1-J1>>>0;J1>>>=0;const N1=Array(M1);while(++L1<M1){N1[L1]=I1[L1+J1];}return N1;},init=a=>{if(typeof a==="string"){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];},join=(O1,P1)=>{if(P1===void 0){return Q1=>join(O1,Q1);}return P1.join(O1);},map=(fn,S1)=>{if(S1===void 0){return T1=>map(fn,T1);}return S1.map(fn);},last=U1=>U1[U1.length-1],length=V1=>V1.length,match=(W1,X1)=>{if(X1===void 0){return Y1=>match(W1,Y1);}const Z1=X1.match(W1);return Z1===null?[]:Z1;},merge=(a2,b2)=>{if(b2===void 0){return c2=>merge(a2,c2);}return Object.assign({},a2,b2);},omit=(d2,e2)=>{if(e2===void 0){return f2=>omit(d2,f2);}const g2={};for(key in e2){if(!d2.includes(key)){g2[key]=e2[key];}}return g2;},path=(h2,i2)=>{if(i2===void 0){return j2=>path(h2,j2);}let k2=i2,l2=0;while(l2<h2.length){if(k2===null){return void 0;}k2=k2[h2[l2]];l2++;}return k2;},prepend=(m2,n2)=>{if(n2===void 0){return o2=>prepend(m2,o2);}const p2=n2;p2.push(m2);return p2;},pick=(q2,r2)=>{if(r2===void 0){return s2=>pick(q2,s2);}const t2={};for(key in r2){if(q2.includes(key)){t2[key]=r2[key];}}return t2;},prop=(u2,v2)=>{if(v2===void 0){return w2=>prop(u2,w2);}return v2[u2];},propEq=(x2,y2,z2)=>{if(y2===void 0){return(A2,B2)=>propEq(x2,A2,B2);}else if(z2===void 0){return C2=>propEq(x2,y2,C2);}return z2[x2]===y2;},range=(D2,E2)=>{const F2=[];for(let i=D2;i<E2;i++){F2.push(i);}return F2;},repeat=(a,G2)=>{if(G2===void 0){return H2=>repeat(a,H2);}const I2=range(0,G2);return I2.fill(a);},replace=(J2,K2,L2)=>{if(K2===void 0){return(M2,N2)=>replace(J2,M2,N2);}else if(L2===void 0){return O2=>replace(J2,K2,O2);}return L2.replace(J2,K2);},subtract=(a,b)=>{if(b===void 0){return c=>subtract(a,c);}return a-b;},sort=(fn,Q2)=>{if(Q2===void 0){return R2=>sort(fn,R2);}const S2=Q2;return S2.sort(fn);},sortBy=(fn,U2)=>{if(U2===void 0){return V2=>sortBy(fn,V2);}const W2=U2;return W2.sort((a,b)=>{const X2=fn(a),Y2=fn(b);return X2<Y2?-1:X2>Y2?1:0;});},split=(Z2,a3)=>{if(a3===void 0){return b3=>split(Z2,b3);}return a3.split(Z2);},splitEvery=(c3,a)=>{if(a===void 0){return d3=>splitEvery(c3,d3);}c3=c3>1?c3:1;const e3=[];let f3=0;while(f3<a.length){e3.push(a.slice(f3,f3+=c3));}return e3;},tail=g3=>drop(1,g3),take=(h3,i3)=>{if(i3===void 0){return j3=>take(h3,j3);}const k3=i3;return k3.slice(0,h3);},takeLast=(l3,m3)=>{if(m3===void 0){return n3=>dropLast(l3,n3);}const o3=m3;l3=l3>o3.length?o3.length:l3;return o3.slice(o3.length-l3);},toLower=a=>a.toLowerCase(),toUpper=a=>a.toUpperCase(),test=(p3,q3)=>{if(q3===void 0){return r3=>test(p3,r3);}return q3.search(p3)===-1?!1:!0;},trim=s3=>s3.trim(),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";}return"Object";},values=t3=>{const u3=[];for(key in t3){u3.push(t3[key]);}return u3;},uniq=v3=>{const w3=[];return v3.filter(x3=>{if(w3.includes(x3)){return!1;}w3.push(x3);return!0;});},update=(y3,z3,A3)=>{if(z3===void 0){return(B3,C3)=>update(y3,B3,C3);}else if(A3===void 0){return D3=>update(y3,z3,D3);}return A3.fill(y3,z3,z3+1);};s.exports.add=add;s.exports.adjust=adjust;s.exports.any=any;s.exports.append=append;s.exports.compose=compose;s.exports.contains=contains;s.exports.drop=drop;s.exports.dropLast=dropLast;s.exports.equals=equals;s.exports.filter=filter;s.exports.find=find;s.exports.findIndex=findIndex;s.exports.flatten=flatten;s.exports.head=head;s.exports.indexOf=indexOf;s.exports.init=init;s.exports.join=join;s.exports.last=last;s.exports.length=length;s.exports.map=map;s.exports.match=match;s.exports.merge=merge;s.exports.omit=omit;s.exports.path=path;s.exports.pick=pick;s.exports.prepend=prepend;s.exports.prop=prop;s.exports.propEq=propEq;s.exports.range=range;s.exports.repeat=repeat;s.exports.replace=replace;s.exports.sort=sort;s.exports.sortBy=sortBy;s.exports.split=split;s.exports.splitEvery=splitEvery;s.exports.subtract=subtract;s.exports.tail=tail;s.exports.take=take;s.exports.takeLast=takeLast;s.exports.test=test;s.exports.toLower=toLower;s.exports.toUpper=toUpper;s.exports.trim=trim;s.exports.type=type;s.exports.uniq=uniq;s.exports.update=update;s.exports.values=values;},function(E3,F3,G3){const R=G3(0);E3.exports={R:R};}]);}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277705