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.6 to 0.8.0

__tests__/includes.js

15

__tests__/omit.js
const R = require("../rambda")
test("R.omit with string as condition", () => {
const obj = {
a:1,
b:2,
c:3
}
const result = R.omit('a, c', obj)
const resultCurry = R.omit('a,c')(obj)
const expectedResult = {
b: 2
}
expect(result).toEqual(expectedResult)
expect(resultCurry).toEqual(expectedResult)
})
describe("omit", () => {

@@ -4,0 +19,0 @@ it("", () => {

2

__tests__/path.js

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

test("", () => {
test("R.path", () => {
expect(

@@ -26,0 +26,0 @@ R.path(

const R = require("../rambda")
describe("pick", () => {
it("", () => {
expect(
R.pick(
[ "a", "c" ]
)({
a : "foo",
b : "bar",
c : "baz",
})
).toEqual({
a : "foo",
c : "baz",
})
test("R.pick with string as condition", () => {
const obj = {
a:1,
b:2,
c:3
}
const result = R.pick('a, c', obj)
const resultCurry = R.pick('a,c')(obj)
const expectedResult = {
a:1,
c:3
}
expect(result).toEqual(expectedResult)
expect(resultCurry).toEqual(expectedResult)
})
expect(
R.pick(
[ "a", "d", "e", "f" ]
)({
a : "foo",
b : "bar",
c : "baz",
})
).toEqual({ a : "foo" })
test("R.pick", () => {
expect(
R.pick(
["a", "c"]
)({
a: "foo",
b: "bar",
c: "baz",
})
).toEqual({
a: "foo",
c: "baz",
})
expect(
R.pick(
["a", "d", "e", "f"]
)({
a: "foo",
b: "bar",
c: "baz",
})
).toEqual({ a: "foo" })
})

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

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

const type = require("./type")
function omit(keys, obj){

@@ -5,3 +7,6 @@ if (obj === undefined) {

}
if(type(keys)==='String'){
keys = keys.split(',').map(x => x.trim())
}
const willReturn = {}

@@ -8,0 +13,0 @@ for (const key in obj) {

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

const type = require("./type")
function pick(keys, obj) {

@@ -5,2 +6,6 @@ if (obj === undefined) {

}
if(type(keys)==='String'){
keys = keys.split(',').map(x => x.trim())
}
const willReturn = {}

@@ -7,0 +12,0 @@ let counter = 0

{
"name": "rambda",
"version": "0.7.6",
"version": "0.8.0",
"description": "Lightweight alternative to Ramda",

@@ -9,3 +9,4 @@ "main": "index.js",

"test": "jest",
"dev": "jest __tests__/path.js",
"lint": "node files/lint",
"dev": "jest __tests__/omit.js",
"node-build": "webpack --config files/webpack.config.node.js",

@@ -12,0 +13,0 @@ "browser-build": "webpack --config files/webpack.config.js",

@@ -20,2 +20,3 @@ exports.add = require("./modules/add")

exports.indexOf = require("./modules/indexOf")
exports.includes = require("./modules/includes")
exports.init = require("./modules/init")

@@ -28,2 +29,3 @@ exports.join = require("./modules/join")

exports.merge = require("./modules/merge")
exports.not = require("./modules/not")
exports.omit = require("./modules/omit")

@@ -30,0 +32,0 @@ exports.path = require("./modules/path")

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

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.7.6/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.0/webVersion.js
```

@@ -53,7 +53,9 @@

- Rambda's **path** accepts both string and array as object path.
- Rambda's **path**, **pick** and **omit** accepts both string and array as condition argument.
- Rambda's **partialCurry** and **includes** are not part of Ramda API.
- **Rambda** is tested for compatability with **Ramda.flip**, as this method could be useful in some cases.
> If you need more **Ramda** methods, than what **Rambda** offers, you may check the extended version of Rambda - [Rambdax](https://github.com/selfrefactor/rambdax)
> If you need more **Ramda** methods in **Rambda**, you may either submit a `PR` or check the extended version of **Rambda** - [Rambdax](https://github.com/selfrefactor/rambdax)

@@ -677,6 +679,5 @@ ## API

## More info
## Changelog
> Changelog
- 0.8.0 Add `R.not`, `R.includes` | Take string as condition for `R.pick` and `R.omit`
- 0.7.6 Fix incorrect implementation of `R.values`

@@ -691,6 +692,90 @@ - 0.7.5 Fix incorrect implementation of `R.omit`

> PR
## Contribution guidelines
If you want to add another `Ramda` method to the API, please feel free to submit a `PR`
If you want to add another `Ramda` method to the API, please feel free to submit a `PR` .
The only requirement is the new method to have exact or very close implementation compared to the corresponding `Ramda` method.
I give you example steps of the `PR` process.
> Create a method file in `modules` folder.
If the new method is `R.endsWith`, then the created file will be `./modules/endsWith.js`
> Write the function declaration and function's logic.
```
function endsWith(x, arrOrStr){
return arrOrStr.endsWith(x)
}
```
> Any method, which takes more than one argument, should be curried.
We can use the standard curring used throughout `Rambda`.
```
function endsWith(x, arrOrStr){
if(arrOrStr === undefined){
return holder => endsWith(x, arrOrStr)
}
return arrOrStr.endsWith(x)
}
module.exports = endsWith
```
Or we can use `R.curry`, which is not as performant as the example above.
```
const curry = require('./curry')
function endsWith(x, arrOrStr){
if(arrOrStr === undefined){
return holder => endsWith(x, arrOrStr)
}
return arrOrStr.endsWith(x)
}
module.exports = curry(endsWith)
```
> Edit `rambda.js` file
Exported methods are sorted alphabetically
```
exports.dropLast = require("./modules/dropLast")
exports.endsWith = require("./modules/endsWith")
exports.equals = require("./modules/equals")
```
> Write your test cases
Create file `endsWith.js` in folder `__tests__`
```
const R = require('../rambda')
test('endsWith', () => {
expect(R.endsWith('oo')('foo')).toBeTruthy()
})
```
> Run `npm test` to validate your tests
> Edit `./README.md` to add documentation
Note that your documentation should match the pattern visible across `./README.md`
> Lint your files
We have two new files and for linting them we must run:
`npm run lint modules/endsWith.js`
`npm run lint __tests__/endsWith.js`
> Submit PR
Expect response within the next 2 days.
## Additional info
> Projects using Rambda

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