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.2 to 0.7.3

__tests__/addIndex.js

17

docs/README.md

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

- Rambda's **type** detect async functions. The returned value is `"Async"`
-
- Rambda's **type** detect unresolved `Promises`. The returned value is `"Promise"`

@@ -70,2 +70,11 @@

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

@@ -316,3 +325,3 @@

> map(regExpression: Regex, str: String): Array
> match(regExpression: Regex, str: String): Array

@@ -441,3 +450,3 @@ ```javascript

#### reduce
#### reduce

@@ -674,3 +683,3 @@ > reduce(iteratorFn: Function, accumulator: any, array: Array): any

- 0.7.1 Close [issue #7](https://github.com/selfrefactor/rambda/issues/7) - add `R.reduce` to the API
- 0.7.0 Close [issue #5](https://github.com/selfrefactor/rambda/issues/5) - change name of `curry` to `partialCurry`; add new method `curry`, which works just like Ramda's `curry`
- 0.7.0 Close [issue #5](https://github.com/selfrefactor/rambda/issues/5) - change name of `curry` to `partialCurry`; add new method `curry`, which works just like Ramda's `curry`
- 0.6.2 Add separate documentation site via `docsify`

@@ -677,0 +686,0 @@

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

const R = require("../rambda")
const R = require("../")
const Ramda = require("ramda")

@@ -10,3 +10,3 @@ const _ = require("lodash")

const add = new Benchmark.Suite
options.add = false
options.add = true

@@ -34,3 +34,3 @@ if (options.add) {

const adjust = new Benchmark.Suite
options.adjust = false
options.adjust = true

@@ -54,3 +54,3 @@ if (options.adjust) {

const any = new Benchmark.Suite
options.any = false
options.any = true

@@ -77,3 +77,3 @@ if (options.any) {

const append = new Benchmark.Suite
options.append = false
options.append = true

@@ -97,3 +97,3 @@ if (options.append) {

const compose = new Benchmark.Suite
options.compose = false
options.compose = true

@@ -120,3 +120,3 @@ if (options.compose) {

const contains = new Benchmark.Suite
options.contains = false
options.contains = true

@@ -145,3 +145,3 @@ if (options.contains) {

const drop = new Benchmark.Suite
options.drop = false
options.drop = true

@@ -167,3 +167,3 @@ if (options.drop) {

const dropLast = new Benchmark.Suite
options.dropLast = false
options.dropLast = true

@@ -189,3 +189,3 @@ if (options.dropLast) {

const equals = new Benchmark.Suite
options.equals = false
options.equals = true

@@ -212,3 +212,3 @@ if (options.equals) {

const filter = new Benchmark.Suite
options.filter = false
options.filter = true

@@ -235,3 +235,3 @@ if (options.filter) {

const find = new Benchmark.Suite
options.find = false
options.find = true

@@ -258,3 +258,3 @@ if (options.find) {

const findIndex = new Benchmark.Suite
options.findIndex = false
options.findIndex = true

@@ -283,3 +283,3 @@ if (options.findIndex) {

const flatten = new Benchmark.Suite
options.flatten = false
options.flatten = true

@@ -306,3 +306,3 @@ if (options.flatten) {

const head = new Benchmark.Suite
options.head = false
options.head = true

@@ -330,3 +330,3 @@ if (options.head) {

const headString = new Benchmark.Suite
options.headString = false
options.headString = true

@@ -351,3 +351,3 @@ if (options.headString) {

const indexOf = new Benchmark.Suite
options.indexOf = false
options.indexOf = true

@@ -376,3 +376,3 @@ if (options.indexOf) {

const init = new Benchmark.Suite
options.init = false
options.init = true

@@ -400,3 +400,3 @@ if (options.init) {

const initString = new Benchmark.Suite
options.initString = false
options.initString = true

@@ -421,3 +421,3 @@ if (options.initString) {

const last = new Benchmark.Suite
options.last = false
options.last = true

@@ -445,3 +445,3 @@ if (options.last) {

const map = new Benchmark.Suite
options.map = false
options.map = true

@@ -470,3 +470,3 @@ if (options.map) {

const match = new Benchmark.Suite
options.match = false
options.match = true

@@ -494,3 +494,3 @@ if (options.match) {

const merge = new Benchmark.Suite
options.merge = false
options.merge = true

@@ -519,3 +519,3 @@ if (options.merge) {

const omit = new Benchmark.Suite
options.omit = false
options.omit = true

@@ -544,3 +544,3 @@ if (options.omit) {

const path = new Benchmark.Suite
options.path = false
options.path = true

@@ -569,3 +569,3 @@ if (options.path) {

const pick = new Benchmark.Suite
options.pick = false
options.pick = true

@@ -594,3 +594,3 @@ if (options.pick) {

const prop = new Benchmark.Suite
options.prop = false
options.prop = true

@@ -616,3 +616,3 @@ if (options.prop) {

const propEq = new Benchmark.Suite
options.propEq = false
options.propEq = true

@@ -642,3 +642,3 @@ if (options.propEq) {

const range = new Benchmark.Suite
options.range = false
options.range = true

@@ -667,3 +667,3 @@ if (options.range) {

const reduce = new Benchmark.Suite
options.reduce = false
options.reduce = true

@@ -693,3 +693,3 @@ if (options.reduce) {

const repeat = new Benchmark.Suite
options.repeat = false
options.repeat = true

@@ -718,3 +718,3 @@ if (options.repeat) {

const replace = new Benchmark.Suite
options.replace = false
options.replace = true

@@ -741,3 +741,3 @@ if (options.replace) {

const sort = new Benchmark.Suite
options.sort = false
options.sort = true

@@ -765,3 +765,3 @@ if (options.sort) {

const sortBy = new Benchmark.Suite
options.sortBy = false
options.sortBy = true

@@ -788,3 +788,3 @@ if (options.sortBy) {

const split = new Benchmark.Suite
options.split = false
options.split = true

@@ -811,3 +811,3 @@ if (options.split) {

const splitEvery = new Benchmark.Suite
options.splitEvery = false
options.splitEvery = true

@@ -831,3 +831,3 @@ if (options.splitEvery) {

const splitEveryString = new Benchmark.Suite
options.splitEveryString = false
options.splitEveryString = true

@@ -851,3 +851,3 @@ if (options.splitEveryString) {

const take = new Benchmark.Suite
options.take = false
options.take = true

@@ -876,3 +876,3 @@ if (options.take) {

const takeString = new Benchmark.Suite
options.takeString = false
options.takeString = true

@@ -898,3 +898,3 @@ if (options.takeString) {

const takeLast = new Benchmark.Suite
options.takeLast = false
options.takeLast = true

@@ -923,3 +923,3 @@ if (options.takeLast) {

const takeLastString = new Benchmark.Suite
options.takeLastString = false
options.takeLastString = true

@@ -945,3 +945,3 @@ if (options.takeLastString) {

const test = new Benchmark.Suite
options.test = false
options.test = true

@@ -965,3 +965,3 @@ if (options.test) {

const toLower = new Benchmark.Suite
options.toLower = false
options.toLower = true

@@ -989,3 +989,3 @@ if (options.toLower) {

const toUpper = new Benchmark.Suite
options.toUpper = false
options.toUpper = true

@@ -1013,3 +1013,3 @@ if (options.toUpper) {

const trim = new Benchmark.Suite
options.trim = false
options.trim = true

@@ -1037,3 +1037,3 @@ if (options.trim) {

const type = new Benchmark.Suite
options.type = false
options.type = true

@@ -1057,3 +1057,3 @@ if (options.type) {

const update = new Benchmark.Suite
options.update = false
options.update = true

@@ -1077,3 +1077,3 @@ if (options.update) {

const values = new Benchmark.Suite
options.values = false
options.values = true

@@ -1101,3 +1101,3 @@ if (options.values) {

const uniq = new Benchmark.Suite
options.uniq = false
options.uniq = true

@@ -1125,3 +1125,3 @@ if (options.uniq) {

const example = new Benchmark.Suite
options.example = false
options.example = true

@@ -1128,0 +1128,0 @@ if (options.example) {

@@ -6,3 +6,14 @@ module.exports = {

libraryTarget: "commonjs-module",
},
module:{
rules:[
{
test : /\.js$/,
loader : "babel-loader",
options : {
presets : ["es2015"],
},
}
]
}
}

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

@@ -33,2 +33,5 @@ "main": "index.js",

"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.1.1",
"babel-preset-es2015": "^6.24.1",
"beautify-benchmark": "^0.2.4",

@@ -35,0 +38,0 @@ "benchmark": "^2.1.3",

exports.add = require("./modules/add")
exports.addIndex = require("./modules/addIndex")
exports.any = require("./modules/any")

@@ -3,0 +4,0 @@ exports.adjust = require("./modules/adjust")

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

- Rambda's **type** detect async functions. The returned value is `"Async"`
-
- Rambda's **type** detect unresolved `Promises`. The returned value is `"Promise"`

@@ -70,2 +70,11 @@

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

@@ -316,3 +325,3 @@

> map(regExpression: Regex, str: String): Array
> match(regExpression: Regex, str: String): Array

@@ -441,3 +450,3 @@ ```javascript

#### reduce
#### reduce

@@ -672,5 +681,6 @@ > reduce(iteratorFn: Function, accumulator: any, array: Array): any

- 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
- 0.7.2 Add `Promise` support for `R.type`
- 0.7.1 Close [issue #7](https://github.com/selfrefactor/rambda/issues/7) - add `R.reduce` to the API
- 0.7.0 Close [issue #5](https://github.com/selfrefactor/rambda/issues/5) - change name of `curry` to `partialCurry`; add new method `curry`, which works just like Ramda's `curry`
- 0.7.0 Close [issue #5](https://github.com/selfrefactor/rambda/issues/5) - change name of `curry` to `partialCurry`; add new method `curry`, which works just like Ramda's `curry`
- 0.6.2 Add separate documentation site via `docsify`

@@ -677,0 +687,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.any=v1(11);u1.adjust=v1(10);u1.append=v1(12);u1.compose=v1(13);u1.contains=v1(2);u1.curry=v1(14);u1.defaultTo=v1(15);u1.drop=v1(3);u1.dropLast=v1(16);u1.equals=v1(4);u1.filter=v1(17);u1.find=v1(18);u1.findIndex=v1(19);u1.flatten=v1(20);u1.has=v1(21);u1.head=v1(22);u1.indexOf=v1(23);u1.init=v1(24);u1.join=v1(25);u1.last=v1(26);u1.length=v1(27);u1.map=v1(5);u1.match=v1(28);u1.merge=v1(6);u1.omit=v1(29);u1.path=v1(31);u1.partialCurry=v1(30);u1.pick=v1(32);u1.pluck=v1(33);u1.prepend=v1(34);u1.prop=v1(35);u1.propEq=v1(36);u1.range=v1(37);u1.repeat=v1(39);u1.replace=v1(40);u1.sort=v1(41);u1.sortBy=v1(42);u1.split=v1(43);u1.splitEvery=v1(44);u1.subtract=v1(45);u1.tail=v1(46);u1.take=v1(47);u1.takeLast=v1(48);u1.test=v1(49);u1.toLower=v1(50);u1.toUpper=v1(51);u1.trim=v1(52);u1.type=v1(0);u1.uniq=v1(53);u1.update=v1(54);u1.values=v1(55);u1.reduce=v1(38);},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 adjust(fn,F1,G1){if(F1===void 0){return(H1,I1)=>adjust(fn,H1,I1);}else if(G1===void 0){return J1=>adjust(fn,F1,J1);}const K1=G1.concat();return K1.map((L1,M1)=>{if(M1===F1){return fn(G1[F1]);}return L1;});}C1.exports=adjust;},function(N1,O1){function any(fn,Q1){if(Q1===void 0){return R1=>any(fn,R1);}let S1=0;while(S1<Q1.length){if(fn(Q1[S1])){return!0;}S1++;}return!1;}N1.exports=any;},function(T1,U1){function append(V1,W1){if(W1===void 0){return X1=>append(V1,X1);}const Y1=W1.concat();Y1.push(V1);return Y1;}T1.exports=append;},function(Z1,a2){const compose=(...fns)=>b2=>{let c2=fns.slice();while(c2.length>0){b2=c2.pop()(b2);}return b2;};Z1.exports=compose;},function(d2,e2){function curry(f,a=[]){return(...p)=>(o=>o.length===f.length?f(...o):curry(f,o))([...a,...p]);}d2.exports=curry;},function(f2,g2,h2){const i2=h2(0);function defaultTo(j2,k2){if(arguments.length===1){return l2=>defaultTo(j2,l2);}return k2===void 0||!(i2(k2)===i2(j2))?j2:k2;}f2.exports=defaultTo;},function(m2,n2){function dropLast(o2,a){if(a===void 0){return p2=>dropLast(o2,p2);}return a.slice(0,-o2);}m2.exports=dropLast;},function(q2,r2){function filter(fn,t2){if(t2===void 0){return u2=>filter(fn,u2);}let v2=-1,w2=0;const x2=t2.length,y2=[];while(++v2<x2){const z2=t2[v2];if(fn(z2)){y2[w2++]=z2;}}return y2;}q2.exports=filter;},function(A2,B2){function find(fn,D2){if(D2===void 0){return E2=>find(fn,E2);}return D2.find(fn);}A2.exports=find;},function(F2,G2){function findIndex(fn,I2){if(I2===void 0){return J2=>findIndex(fn,J2);}const K2=I2.length;let L2=-1;while(++L2<K2){if(fn(I2[L2])){return L2;}}return-1;}F2.exports=findIndex;},function(M2,N2){function flatten(O2,P2){P2=P2===void 0?[]:P2;for(let i=0;i<O2.length;i++){if(Array.isArray(O2[i])){flatten(O2[i],P2);}else{P2.push(O2[i]);}}return P2;}M2.exports=flatten;},function(Q2,R2){function has(S2,T2){if(T2===void 0){return U2=>has(S2,U2);}return T2[S2]!==void 0;}Q2.exports=has;},function(V2,W2){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}V2.exports=head;},function(X2,Y2){function indexOf(Z2,a3){if(a3===void 0){return b3=>indexOf(Z2,b3);}let c3=-1;const d3=a3.length;while(++c3<d3){if(a3[c3]===Z2){return c3;}}return-1;}X2.exports=indexOf;},function(e3,f3,g3){const h3=g3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?h3(a,0,-1):[];}e3.exports=init;},function(i3,j3){function join(k3,l3){if(l3===void 0){return m3=>join(k3,m3);}return l3.join(k3);}i3.exports=join;},function(n3,o3){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}n3.exports=last;},function(p3,q3){function length(r3){return r3.length;}p3.exports=length;},function(s3,t3){function match(u3,v3){if(v3===void 0){return w3=>match(u3,w3);}const x3=v3.match(u3);return x3===null?[]:x3;}s3.exports=match;},function(y3,z3){function omit(A3,B3){if(B3===void 0){return C3=>omit(A3,C3);}const D3={};for(key in B3){if(!A3.includes(key)){D3[key]=B3[key];}}return D3;}y3.exports=omit;},function(E3,F3,G3){const H3=G3(0),I3=G3(6);function curry(fn,K3={}){return L3=>{if(H3(fn)==="Async"){return new Promise((M3,N3)=>{fn(I3(L3,K3)).then(M3).catch(N3);});}return fn(I3(L3,K3));};}E3.exports=curry;},function(O3,P3){function path(Q3,R3){if(R3===void 0){return S3=>path(Q3,S3);}let T3=R3,U3=0;if(typeof Q3==="string"){Q3=Q3.split(".");}while(U3<Q3.length){if(T3===null){return void 0;}T3=T3[Q3[U3]];U3++;}return T3;}O3.exports=path;},function(V3,W3){function pick(X3,Y3){if(Y3===void 0){return Z3=>pick(X3,Z3);}const a4={};let b4=0;while(b4<X3.length){if(X3[b4]in Y3){a4[X3[b4]]=Y3[X3[b4]];}b4++;}return a4;}V3.exports=pick;},function(c4,d4,e4){const f4=e4(5);function pluck(g4,h4){if(h4===void 0){return i4=>pluck(g4,i4);}const j4=[];f4(k4=>{if(!(k4[g4]===void 0)){j4.push(k4[g4]);}},h4);return j4;}c4.exports=pluck;},function(l4,m4){function prepend(n4,o4){if(o4===void 0){return p4=>prepend(n4,p4);}const q4=o4.concat();q4.unshift(n4);return q4;}l4.exports=prepend;},function(r4,s4){function prop(t4,u4){if(u4===void 0){return v4=>prop(t4,v4);}return u4[t4];}r4.exports=prop;},function(w4,x4){function propEq(y4,z4,A4){if(z4===void 0){return(B4,C4)=>propEq(y4,B4,C4);}else if(A4===void 0){return D4=>propEq(y4,z4,D4);}return A4[y4]===z4;}w4.exports=propEq;},function(E4,F4){function range(G4,H4){const I4=[];for(let i=G4;i<H4;i++){I4.push(i);}return I4;}E4.exports=range;},function(J4,K4){function reduce(fn,M4,N4){if(M4===void 0){return(O4,P4)=>reduce(fn,O4,P4);}else if(N4===void 0){return Q4=>reduce(fn,M4,Q4);}return N4.reduce(fn,M4);}J4.exports=reduce;},function(R4,S4){function repeat(a,T4){if(T4===void 0){return U4=>repeat(a,U4);}const V4=Array(T4);return V4.fill(a);}R4.exports=repeat;},function(W4,X4){function replace(Y4,Z4,a5){if(Z4===void 0){return(b5,c5)=>replace(Y4,b5,c5);}else if(a5===void 0){return d5=>replace(Y4,Z4,d5);}return a5.replace(Y4,Z4);}W4.exports=replace;},function(e5,f5){function sort(fn,h5){if(h5===void 0){return i5=>sort(fn,i5);}const j5=h5.concat();return j5.sort(fn);}e5.exports=sort;},function(k5,l5){function sortBy(fn,n5){if(n5===void 0){return o5=>sortBy(fn,o5);}const p5=n5.concat();return p5.sort((a,b)=>{const q5=fn(a),r5=fn(b);return q5<r5?-1:q5>r5?1:0;});}k5.exports=sortBy;},function(s5,t5){function split(u5,v5){if(v5===void 0){return w5=>split(u5,w5);}return v5.split(u5);}s5.exports=split;},function(x5,y5){function splitEvery(z5,a){if(a===void 0){return A5=>splitEvery(z5,A5);}z5=z5>1?z5:1;const B5=[];let C5=0;while(C5<a.length){B5.push(a.slice(C5,C5+=z5));}return B5;}x5.exports=splitEvery;},function(D5,E5){function subtract(a,b){if(b===void 0){return F5=>subtract(a,F5);}return a-b;}D5.exports=subtract;},function(G5,H5,I5){const J5=I5(3);function tail(K5){return J5(1,K5);}G5.exports=tail;},function(L5,M5,N5){const O5=N5(1);function take(P5,a){if(a===void 0){return Q5=>take(P5,Q5);}else if(typeof a==="string"){return a.slice(0,P5);}return O5(a,0,P5);}L5.exports=take;},function(R5,S5,T5){const U5=T5(1);function takeLast(V5,a){if(a===void 0){return W5=>takeLast(V5,W5);}const X5=a.length;V5=V5>X5?X5:V5;if(typeof a==="string"){return a.slice(X5-V5);}V5=X5-V5;return U5(a,V5,X5);}R5.exports=takeLast;},function(Y5,Z5){function test(a6,b6){if(b6===void 0){return c6=>test(a6,c6);}return b6.search(a6)===-1?!1:!0;}Y5.exports=test;},function(d6,e6){function toLower(f6){return f6.toLowerCase();}d6.exports=toLower;},function(g6,h6){function toUpper(i6){return i6.toUpperCase();}g6.exports=toUpper;},function(j6,k6){function trim(l6){return l6.trim();}j6.exports=trim;},function(m6,n6,o6){const p6=o6(2);function uniq(q6){let r6=-1;const s6=[];while(++r6<q6.length){const t6=q6[r6];if(!p6(t6,s6)){s6.push(t6);}}return s6;}m6.exports=uniq;},function(u6,v6){function update(w6,x6,y6){if(x6===void 0){return(z6,A6)=>update(w6,z6,A6);}else if(y6===void 0){return B6=>update(w6,x6,B6);}const C6=y6.concat();return C6.fill(x6,w6,w6+1);}u6.exports=update;},function(D6,E6){function values(F6){const G6=[];for(key in F6){G6.push(F6[key]);}return G6;}D6.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