Comparing version 0.8.4 to 0.8.5
@@ -17,2 +17,5 @@ const R = require("../../rambda") | ||
).toEqual(undefined) | ||
expect( | ||
R.path("foo.bar.baz")(undefined) | ||
).toEqual(undefined) | ||
}) | ||
@@ -19,0 +22,0 @@ |
@@ -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.8.3/webVersion.js | ||
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.4/webVersion.js | ||
``` | ||
@@ -683,2 +683,6 @@ | ||
#### T | ||
`R.T() // => true` | ||
#### tail | ||
@@ -806,5 +810,2 @@ | ||
#### T | ||
`R.T() // => true` | ||
--- | ||
@@ -863,2 +864,3 @@ | ||
- 0.8.4 Learning to run `npm test` before `npm publish` the hard way | ||
- 0.8.3 Add `R.always`, `R.T` and `R.F` | ||
@@ -865,0 +867,0 @@ - 0.8.2 Add `concat`, `padStart`, `padEnd`, `lastIndexOf`, `toString`, `reverse`, `endsWith` and `startsWith` methods |
1003
index.js
@@ -67,3 +67,3 @@ module.exports = | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 57); | ||
/******/ return __webpack_require__(__webpack_require__.s = 62); | ||
/******/ }) | ||
@@ -199,18 +199,18 @@ /************************************************************************/ | ||
var equals = __webpack_require__(7); | ||
var curryTwo = __webpack_require__(0); | ||
function contains(val, arr) { | ||
var index = -1; | ||
var flag = false; | ||
while (++index < arr.length && !flag) { | ||
if (equals(arr[index], val)) { | ||
flag = true; | ||
function any(fn, arr) { | ||
var counter = 0; | ||
while (counter < arr.length) { | ||
if (fn(arr[counter])) { | ||
return true; | ||
} | ||
counter++; | ||
} | ||
return flag; | ||
return false; | ||
} | ||
module.exports = curryTwo(contains); | ||
module.exports = curryTwo(any); | ||
@@ -224,21 +224,18 @@ /***/ }), | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
var equals = __webpack_require__(7); | ||
var curryTwo = __webpack_require__(0); | ||
// taken from the last comment of https://gist.github.com/mkuklis/5294248 | ||
function curry(f) { | ||
var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
return function () { | ||
for (var _len = arguments.length, p = Array(_len), _key = 0; _key < _len; _key++) { | ||
p[_key] = arguments[_key]; | ||
function contains(val, arr) { | ||
var index = -1; | ||
var flag = false; | ||
while (++index < arr.length && !flag) { | ||
if (equals(arr[index], val)) { | ||
flag = true; | ||
} | ||
} | ||
return function (o) { | ||
return o.length >= f.length ? f.apply(undefined, _toConsumableArray(o)) : curry(f, o); | ||
}([].concat(_toConsumableArray(a), p)); | ||
}; | ||
return flag; | ||
} | ||
module.exports = curry; | ||
module.exports = curryTwo(contains); | ||
@@ -423,18 +420,16 @@ /***/ }), | ||
var curryTwo = __webpack_require__(0); | ||
var _require = __webpack_require__(61), | ||
filter = _require.filter; | ||
function any(fn, arr) { | ||
var counter = 0; | ||
while (counter < arr.length) { | ||
if (fn(arr[counter])) { | ||
return true; | ||
} | ||
counter++; | ||
function all(condition, arr) { | ||
if (arr === undefined && arguments.length === 1) { | ||
return function (arrHolder) { | ||
return all(condition, arrHolder); | ||
}; | ||
} | ||
return false; | ||
return filter(condition, arr).length === arr.length; | ||
} | ||
module.exports = curryTwo(any); | ||
module.exports = all; | ||
@@ -448,2 +443,24 @@ /***/ }), | ||
var any = __webpack_require__(4); | ||
function allPass(conditions, x) { | ||
if (x === undefined && arguments.length === 1) { | ||
return function (conditions) { | ||
return allPass(conditions, xHolder); | ||
}; | ||
} | ||
return !any(function (condition) { | ||
return !condition(x); | ||
})(conditions); | ||
} | ||
module.exports = allPass; | ||
/***/ }), | ||
/* 14 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryTwo = __webpack_require__(0); | ||
@@ -461,3 +478,3 @@ | ||
/***/ }), | ||
/* 14 */ | ||
/* 15 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -468,2 +485,19 @@ | ||
var curry = __webpack_require__(0); | ||
function both(x, y) { | ||
return function (input) { | ||
return x(input) && y(input); | ||
}; | ||
} | ||
module.exports = curry(both); | ||
/***/ }), | ||
/* 16 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
// Taken from https://github.com/getify/Functional-Light-JS/blob/master/ch4.md | ||
@@ -489,3 +523,3 @@ var compose = function compose() { | ||
/***/ }), | ||
/* 15 */ | ||
/* 17 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -496,2 +530,29 @@ | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
// taken from the last comment of https://gist.github.com/mkuklis/5294248 | ||
function curry(f) { | ||
var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
return function () { | ||
for (var _len = arguments.length, p = Array(_len), _key = 0; _key < _len; _key++) { | ||
p[_key] = arguments[_key]; | ||
} | ||
return function (o) { | ||
return o.length >= f.length ? f.apply(undefined, _toConsumableArray(o)) : curry(f, o); | ||
}([].concat(_toConsumableArray(a), p)); | ||
}; | ||
} | ||
module.exports = curry; | ||
/***/ }), | ||
/* 18 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var type = __webpack_require__(1); | ||
@@ -511,3 +572,3 @@ | ||
/***/ }), | ||
/* 16 */ | ||
/* 19 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -528,3 +589,3 @@ | ||
/***/ }), | ||
/* 17 */ | ||
/* 20 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -535,2 +596,19 @@ | ||
var curry = __webpack_require__(0); | ||
function either(x, y) { | ||
return function (input) { | ||
return x(input) || y(input); | ||
}; | ||
} | ||
module.exports = curry(either); | ||
/***/ }), | ||
/* 21 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryTwo = __webpack_require__(0); | ||
@@ -557,3 +635,3 @@ | ||
/***/ }), | ||
/* 18 */ | ||
/* 22 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -573,3 +651,3 @@ | ||
/***/ }), | ||
/* 19 */ | ||
/* 23 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -598,3 +676,3 @@ | ||
/***/ }), | ||
/* 20 */ | ||
/* 24 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -622,3 +700,3 @@ | ||
/***/ }), | ||
/* 21 */ | ||
/* 25 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -638,3 +716,3 @@ | ||
/***/ }), | ||
/* 22 */ | ||
/* 26 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -656,3 +734,3 @@ | ||
/***/ }), | ||
/* 23 */ | ||
/* 27 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -677,3 +755,3 @@ | ||
/***/ }), | ||
/* 24 */ | ||
/* 28 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -702,3 +780,3 @@ | ||
/***/ }), | ||
/* 25 */ | ||
/* 29 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -722,3 +800,3 @@ | ||
/***/ }), | ||
/* 26 */ | ||
/* 30 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -747,3 +825,3 @@ | ||
/***/ }), | ||
/* 27 */ | ||
/* 31 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -774,3 +852,3 @@ | ||
/***/ }), | ||
/* 28 */ | ||
/* 32 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -799,3 +877,3 @@ | ||
/***/ }), | ||
/* 29 */ | ||
/* 33 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -819,3 +897,3 @@ | ||
/***/ }), | ||
/* 30 */ | ||
/* 34 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -840,3 +918,3 @@ | ||
/***/ }), | ||
/* 31 */ | ||
/* 35 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -858,3 +936,3 @@ | ||
/***/ }), | ||
/* 32 */ | ||
/* 36 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -876,3 +954,3 @@ | ||
/***/ }), | ||
/* 33 */ | ||
/* 37 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -890,3 +968,3 @@ | ||
/***/ }), | ||
/* 34 */ | ||
/* 38 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -920,3 +998,3 @@ | ||
/***/ }), | ||
/* 35 */ | ||
/* 39 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -946,3 +1024,3 @@ | ||
/***/ }), | ||
/* 36 */ | ||
/* 40 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -954,5 +1032,9 @@ | ||
var type = __webpack_require__(1); | ||
var curry = __webpack_require__(5); | ||
function path(pathArr, obj) { | ||
if (obj === undefined && arguments.length === 1) { | ||
return function (objHolder) { | ||
return path(pathArr, objHolder); | ||
}; | ||
} | ||
if (!(type(obj) === "Object")) { | ||
@@ -977,6 +1059,6 @@ return undefined; | ||
module.exports = curry(path); | ||
module.exports = path; | ||
/***/ }), | ||
/* 37 */ | ||
/* 41 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1012,3 +1094,3 @@ | ||
/***/ }), | ||
/* 38 */ | ||
/* 42 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1035,3 +1117,3 @@ | ||
/***/ }), | ||
/* 39 */ | ||
/* 43 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1054,3 +1136,3 @@ | ||
/***/ }), | ||
/* 40 */ | ||
/* 44 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1070,3 +1152,3 @@ | ||
/***/ }), | ||
/* 41 */ | ||
/* 45 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1086,3 +1168,3 @@ | ||
/***/ }), | ||
/* 42 */ | ||
/* 46 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1105,3 +1187,3 @@ | ||
/***/ }), | ||
/* 43 */ | ||
/* 47 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1121,3 +1203,3 @@ | ||
/***/ }), | ||
/* 44 */ | ||
/* 48 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1139,3 +1221,3 @@ | ||
/***/ }), | ||
/* 45 */ | ||
/* 49 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1155,3 +1237,3 @@ | ||
/***/ }), | ||
/* 46 */ | ||
/* 50 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1173,3 +1255,3 @@ | ||
/***/ }), | ||
/* 47 */ | ||
/* 51 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1198,3 +1280,3 @@ | ||
/***/ }), | ||
/* 48 */ | ||
/* 52 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1218,3 +1300,3 @@ | ||
/***/ }), | ||
/* 49 */ | ||
/* 53 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1245,3 +1327,3 @@ | ||
/***/ }), | ||
/* 50 */ | ||
/* 54 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1262,3 +1344,3 @@ | ||
/***/ }), | ||
/* 51 */ | ||
/* 55 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1287,3 +1369,3 @@ | ||
/***/ }), | ||
/* 52 */ | ||
/* 56 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1312,3 +1394,3 @@ | ||
/***/ }), | ||
/* 53 */ | ||
/* 57 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1328,3 +1410,3 @@ | ||
/***/ }), | ||
/* 54 */ | ||
/* 58 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1335,3 +1417,3 @@ | ||
var contains = __webpack_require__(4); | ||
var contains = __webpack_require__(5); | ||
@@ -1354,3 +1436,3 @@ function uniq(arr) { | ||
/***/ }), | ||
/* 55 */ | ||
/* 59 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1379,3 +1461,3 @@ | ||
/***/ }), | ||
/* 56 */ | ||
/* 60 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1398,3 +1480,3 @@ | ||
/***/ }), | ||
/* 57 */ | ||
/* 61 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1405,8 +1487,662 @@ | ||
var helper = __webpack_require__(26); | ||
var mathHelper = __webpack_require__(27); | ||
var oppositeHelper = __webpack_require__(28); | ||
var propHelper = __webpack_require__(29); | ||
var simpleHelper = __webpack_require__(30); | ||
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 (var m4 in j4) { | ||
if (!i4.includes(m4)) { | ||
l4[m4] = j4[m4]; | ||
} | ||
}return l4; | ||
}f4.exports = omit; | ||
}, function (n4, o4, p4) { | ||
"use strict"; | ||
var q4 = p4(0), | ||
r4 = p4(6);function curry(fn) { | ||
var t4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};return function (u4) { | ||
if (q4(fn) === "Async") { | ||
return new Promise(function (v4, w4) { | ||
fn(r4(u4, t4)).then(v4).catch(w4); | ||
}); | ||
}return fn(r4(u4, t4)); | ||
}; | ||
}n4.exports = curry; | ||
}, function (x4, y4, z4) { | ||
"use strict"; | ||
function path(A4, B4) { | ||
if (B4 === void 0) { | ||
return function (C4) { | ||
return path(A4, C4); | ||
}; | ||
}var D4 = B4, | ||
E4 = 0;if (typeof A4 === "string") { | ||
A4 = A4.split("."); | ||
}while (E4 < A4.length) { | ||
if (D4 === null) { | ||
return void 0; | ||
}D4 = D4[A4[E4]];E4++; | ||
}return D4; | ||
}x4.exports = path; | ||
}, function (F4, G4, H4) { | ||
"use strict"; | ||
function pick(I4, J4) { | ||
if (J4 === void 0) { | ||
return function (K4) { | ||
return pick(I4, K4); | ||
}; | ||
}var L4 = {}, | ||
M4 = 0;while (M4 < I4.length) { | ||
if (I4[M4] in J4) { | ||
L4[I4[M4]] = J4[I4[M4]]; | ||
}M4++; | ||
}return L4; | ||
}F4.exports = pick; | ||
}, function (N4, O4, P4) { | ||
"use strict"; | ||
var Q4 = P4(5);function pluck(R4, S4) { | ||
if (S4 === void 0) { | ||
return function (T4) { | ||
return pluck(R4, T4); | ||
}; | ||
}var U4 = [];Q4(function (V4) { | ||
if (!(V4[R4] === void 0)) { | ||
U4.push(V4[R4]); | ||
} | ||
}, S4);return U4; | ||
}N4.exports = pluck; | ||
}, function (W4, X4, Y4) { | ||
"use strict"; | ||
function prepend(Z4, a5) { | ||
if (a5 === void 0) { | ||
return function (b5) { | ||
return prepend(Z4, b5); | ||
}; | ||
}var c5 = a5.concat();c5.unshift(Z4);return c5; | ||
}W4.exports = prepend; | ||
}, function (d5, e5, f5) { | ||
"use strict"; | ||
function prop(g5, h5) { | ||
if (h5 === void 0) { | ||
return function (i5) { | ||
return prop(g5, i5); | ||
}; | ||
}return h5[g5]; | ||
}d5.exports = prop; | ||
}, function (j5, k5, l5) { | ||
"use strict"; | ||
function propEq(m5, n5, o5) { | ||
if (n5 === void 0) { | ||
return function (p5, q5) { | ||
return propEq(m5, p5, q5); | ||
}; | ||
} else if (o5 === void 0) { | ||
return function (r5) { | ||
return propEq(m5, n5, r5); | ||
}; | ||
}return o5[m5] === n5; | ||
}j5.exports = propEq; | ||
}, function (s5, t5, u5) { | ||
"use strict"; | ||
function range(v5, w5) { | ||
for (var x5 = [], i = v5; i < w5; i++) { | ||
x5.push(i); | ||
}return x5; | ||
}s5.exports = range; | ||
}, function (y5, z5, A5) { | ||
"use strict"; | ||
function reduce(fn, C5, D5) { | ||
if (C5 === void 0) { | ||
return function (E5, F5) { | ||
return reduce(fn, E5, F5); | ||
}; | ||
} else if (D5 === void 0) { | ||
return function (G5) { | ||
return reduce(fn, C5, G5); | ||
}; | ||
}return D5.reduce(fn, C5); | ||
}y5.exports = reduce; | ||
}, function (H5, I5, J5) { | ||
"use strict"; | ||
function repeat(a, K5) { | ||
if (K5 === void 0) { | ||
return function (L5) { | ||
return repeat(a, L5); | ||
}; | ||
}var M5 = Array(K5);return M5.fill(a); | ||
}H5.exports = repeat; | ||
}, function (N5, O5, P5) { | ||
"use strict"; | ||
function replace(Q5, R5, S5) { | ||
if (R5 === void 0) { | ||
return function (T5, U5) { | ||
return replace(Q5, T5, U5); | ||
}; | ||
} else if (S5 === void 0) { | ||
return function (V5) { | ||
return replace(Q5, R5, V5); | ||
}; | ||
}return S5.replace(Q5, R5); | ||
}N5.exports = replace; | ||
}, function (W5, X5, Y5) { | ||
"use strict"; | ||
function sort(fn, a6) { | ||
if (a6 === void 0) { | ||
return function (b6) { | ||
return sort(fn, b6); | ||
}; | ||
}var c6 = a6.concat();return c6.sort(fn); | ||
}W5.exports = sort; | ||
}, function (d6, e6, f6) { | ||
"use strict"; | ||
function sortBy(fn, h6) { | ||
if (h6 === void 0) { | ||
return function (i6) { | ||
return sortBy(fn, i6); | ||
}; | ||
}var j6 = h6.concat();return j6.sort(function (a, b) { | ||
var k6 = fn(a), | ||
l6 = fn(b);return k6 < l6 ? -1 : k6 > l6 ? 1 : 0; | ||
}); | ||
}d6.exports = sortBy; | ||
}, function (m6, n6, o6) { | ||
"use strict"; | ||
function split(p6, q6) { | ||
if (q6 === void 0) { | ||
return function (r6) { | ||
return split(p6, r6); | ||
}; | ||
}return q6.split(p6); | ||
}m6.exports = split; | ||
}, function (s6, t6, u6) { | ||
"use strict"; | ||
function splitEvery(v6, a) { | ||
if (a === void 0) { | ||
return function (w6) { | ||
return splitEvery(v6, w6); | ||
}; | ||
}v6 = v6 > 1 ? v6 : 1;var x6 = [], | ||
y6 = 0;while (y6 < a.length) { | ||
x6.push(a.slice(y6, y6 += v6)); | ||
}return x6; | ||
}s6.exports = splitEvery; | ||
}, function (z6, A6, B6) { | ||
"use strict"; | ||
function subtract(a, b) { | ||
if (b === void 0) { | ||
return function (C6) { | ||
return subtract(a, C6); | ||
}; | ||
}return a - b; | ||
}z6.exports = subtract; | ||
}, function (D6, E6, F6) { | ||
"use strict"; | ||
var G6 = F6(3);function tail(H6) { | ||
return G6(1, H6); | ||
}D6.exports = tail; | ||
}, function (I6, J6, K6) { | ||
"use strict"; | ||
var L6 = K6(1);function take(M6, a) { | ||
if (a === void 0) { | ||
return function (N6) { | ||
return take(M6, N6); | ||
}; | ||
} else if (typeof a === "string") { | ||
return a.slice(0, M6); | ||
}return L6(a, 0, M6); | ||
}I6.exports = take; | ||
}, function (O6, P6, Q6) { | ||
"use strict"; | ||
var R6 = Q6(1);function takeLast(S6, a) { | ||
if (a === void 0) { | ||
return function (T6) { | ||
return takeLast(S6, T6); | ||
}; | ||
}var U6 = a.length;S6 = S6 > U6 ? U6 : S6;if (typeof a === "string") { | ||
return a.slice(U6 - S6); | ||
}S6 = U6 - S6;return R6(a, S6, U6); | ||
}O6.exports = takeLast; | ||
}, function (V6, W6, X6) { | ||
"use strict"; | ||
function test(Y6, Z6) { | ||
if (Z6 === void 0) { | ||
return function (a7) { | ||
return test(Y6, a7); | ||
}; | ||
}return Z6.search(Y6) === -1 ? !1 : !0; | ||
}V6.exports = test; | ||
}, function (b7, c7, d7) { | ||
"use strict"; | ||
function toLower(e7) { | ||
return e7.toLowerCase(); | ||
}b7.exports = toLower; | ||
}, function (f7, g7, h7) { | ||
"use strict"; | ||
function toUpper(i7) { | ||
return i7.toUpperCase(); | ||
}f7.exports = toUpper; | ||
}, function (j7, k7, l7) { | ||
"use strict"; | ||
function trim(m7) { | ||
return m7.trim(); | ||
}j7.exports = trim; | ||
}, function (n7, o7, p7) { | ||
"use strict"; | ||
var q7 = p7(2);function uniq(r7) { | ||
var s7 = -1, | ||
t7 = [];while (++s7 < r7.length) { | ||
var u7 = r7[s7];if (!q7(u7, t7)) { | ||
t7.push(u7); | ||
} | ||
}return t7; | ||
}n7.exports = uniq; | ||
}, function (v7, w7, x7) { | ||
"use strict"; | ||
function update(y7, z7, A7) { | ||
if (z7 === void 0) { | ||
return function (B7, C7) { | ||
return update(y7, B7, C7); | ||
}; | ||
} else if (A7 === void 0) { | ||
return function (D7) { | ||
return update(y7, z7, D7); | ||
}; | ||
}var E7 = A7.concat();return E7.fill(z7, y7, y7 + 1); | ||
}v7.exports = update; | ||
}, function (F7, G7, H7) { | ||
"use strict"; | ||
function values(I7) { | ||
var J7 = [];for (key in I7) { | ||
J7.push(I7[key]); | ||
}return J7; | ||
}F7.exports = values; | ||
}, function (K7, L7, M7) { | ||
"use strict"; | ||
L7.add = M7(7);L7.addIndex = M7(8);L7.any = M7(10);L7.adjust = M7(9);L7.append = M7(11);L7.compose = M7(12);L7.contains = M7(2);L7.curry = M7(13);L7.defaultTo = M7(14);L7.drop = M7(3);L7.dropLast = M7(15);L7.equals = M7(4);L7.filter = M7(16);L7.find = M7(17);L7.findIndex = M7(18);L7.flatten = M7(19);L7.has = M7(20);L7.head = M7(21);L7.indexOf = M7(22);L7.init = M7(23);L7.join = M7(24);L7.last = M7(25);L7.length = M7(26);L7.map = M7(5);L7.match = M7(27);L7.merge = M7(6);L7.omit = M7(28);L7.path = M7(30);L7.partialCurry = M7(29);L7.pick = M7(31);L7.pluck = M7(32);L7.prepend = M7(33);L7.prop = M7(34);L7.propEq = M7(35);L7.range = M7(36);L7.repeat = M7(38);L7.replace = M7(39);L7.sort = M7(40);L7.sortBy = M7(41);L7.split = M7(42);L7.splitEvery = M7(43);L7.subtract = M7(44);L7.tail = M7(45);L7.take = M7(46);L7.takeLast = M7(47);L7.test = M7(48);L7.toLower = M7(49);L7.toUpper = M7(50);L7.trim = M7(51);L7.type = M7(0);L7.uniq = M7(52);L7.update = M7(53);L7.values = M7(54);L7.reduce = M7(37); | ||
}]); | ||
/***/ }), | ||
/* 62 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var helper = __webpack_require__(30); | ||
var mathHelper = __webpack_require__(31); | ||
var oppositeHelper = __webpack_require__(32); | ||
var propHelper = __webpack_require__(33); | ||
var simpleHelper = __webpack_require__(34); | ||
exports.add = mathHelper('+'); | ||
@@ -1418,12 +2154,21 @@ exports.addIndex = __webpack_require__(10); | ||
}; | ||
exports.any = __webpack_require__(12); | ||
exports.append = __webpack_require__(13); | ||
exports.compose = __webpack_require__(14); | ||
exports.any = __webpack_require__(4); | ||
exports.append = __webpack_require__(14); | ||
exports.all = __webpack_require__(12); | ||
exports.allPass = __webpack_require__(13); | ||
exports.both = __webpack_require__(15); | ||
exports.compose = __webpack_require__(16); | ||
exports.complement = function (fn) { | ||
return function (input) { | ||
return !Boolean(fn(input)); | ||
}; | ||
}; | ||
exports.concat = oppositeHelper("concat"); | ||
exports.contains = __webpack_require__(4); | ||
exports.curry = __webpack_require__(5); | ||
exports.defaultTo = __webpack_require__(15); | ||
exports.contains = __webpack_require__(5); | ||
exports.curry = __webpack_require__(17); | ||
exports.defaultTo = __webpack_require__(18); | ||
exports.divide = mathHelper('/'); | ||
exports.drop = __webpack_require__(6); | ||
exports.dropLast = __webpack_require__(16); | ||
exports.dropLast = __webpack_require__(19); | ||
exports.either = __webpack_require__(20); | ||
exports.endsWith = helper("endsWith"); | ||
@@ -1434,41 +2179,41 @@ exports.equals = __webpack_require__(7); | ||
}; | ||
exports.filter = __webpack_require__(17); | ||
exports.find = __webpack_require__(18); | ||
exports.findIndex = __webpack_require__(19); | ||
exports.flatten = __webpack_require__(20); | ||
exports.has = __webpack_require__(21); | ||
exports.head = __webpack_require__(22); | ||
exports.ifElse = __webpack_require__(23); | ||
exports.filter = __webpack_require__(21); | ||
exports.find = __webpack_require__(22); | ||
exports.findIndex = __webpack_require__(23); | ||
exports.flatten = __webpack_require__(24); | ||
exports.has = __webpack_require__(25); | ||
exports.head = __webpack_require__(26); | ||
exports.ifElse = __webpack_require__(27); | ||
exports.includes = helper("includes"); | ||
exports.indexOf = __webpack_require__(24); | ||
exports.init = __webpack_require__(25); | ||
exports.indexOf = __webpack_require__(28); | ||
exports.init = __webpack_require__(29); | ||
exports.join = helper('join'); | ||
exports.last = __webpack_require__(31); | ||
exports.last = __webpack_require__(35); | ||
exports.lastIndexOf = helper("lastIndexOf"); | ||
exports.length = propHelper("length"); | ||
exports.map = __webpack_require__(8); | ||
exports.match = __webpack_require__(32); | ||
exports.match = __webpack_require__(36); | ||
exports.merge = __webpack_require__(9); | ||
exports.modulo = mathHelper('%'); | ||
exports.multiply = mathHelper('*'); | ||
exports.not = __webpack_require__(33); | ||
exports.omit = __webpack_require__(34); | ||
exports.not = __webpack_require__(37); | ||
exports.omit = __webpack_require__(38); | ||
exports.padEnd = helper('padEnd'); | ||
exports.padStart = helper('padStart'); | ||
exports.partialCurry = __webpack_require__(35); | ||
exports.path = __webpack_require__(36); | ||
exports.pick = __webpack_require__(37); | ||
exports.pluck = __webpack_require__(38); | ||
exports.prepend = __webpack_require__(39); | ||
exports.prop = __webpack_require__(40); | ||
exports.propEq = __webpack_require__(41); | ||
exports.range = __webpack_require__(42); | ||
exports.reduce = __webpack_require__(43); | ||
exports.repeat = __webpack_require__(44); | ||
exports.replace = __webpack_require__(45); | ||
exports.partialCurry = __webpack_require__(39); | ||
exports.path = __webpack_require__(40); | ||
exports.pick = __webpack_require__(41); | ||
exports.pluck = __webpack_require__(42); | ||
exports.prepend = __webpack_require__(43); | ||
exports.prop = __webpack_require__(44); | ||
exports.propEq = __webpack_require__(45); | ||
exports.range = __webpack_require__(46); | ||
exports.reduce = __webpack_require__(47); | ||
exports.repeat = __webpack_require__(48); | ||
exports.replace = __webpack_require__(49); | ||
exports.reverse = simpleHelper('reverse'); | ||
exports.sort = __webpack_require__(46); | ||
exports.sortBy = __webpack_require__(47); | ||
exports.split = __webpack_require__(48); | ||
exports.splitEvery = __webpack_require__(49); | ||
exports.sort = __webpack_require__(50); | ||
exports.sortBy = __webpack_require__(51); | ||
exports.split = __webpack_require__(52); | ||
exports.splitEvery = __webpack_require__(53); | ||
exports.startsWith = helper("startsWith"); | ||
@@ -1479,6 +2224,6 @@ exports.subtract = mathHelper('-'); | ||
}; | ||
exports.tail = __webpack_require__(50); | ||
exports.take = __webpack_require__(51); | ||
exports.takeLast = __webpack_require__(52); | ||
exports.test = __webpack_require__(53); | ||
exports.tail = __webpack_require__(54); | ||
exports.take = __webpack_require__(55); | ||
exports.takeLast = __webpack_require__(56); | ||
exports.test = __webpack_require__(57); | ||
exports.toLower = simpleHelper("toLowerCase"); | ||
@@ -1489,7 +2234,7 @@ exports.toString = simpleHelper('toString'); | ||
exports.type = __webpack_require__(1); | ||
exports.uniq = __webpack_require__(54); | ||
exports.update = __webpack_require__(55); | ||
exports.values = __webpack_require__(56); | ||
exports.uniq = __webpack_require__(58); | ||
exports.update = __webpack_require__(59); | ||
exports.values = __webpack_require__(60); | ||
/***/ }) | ||
/******/ ]); |
const type = require("./type") | ||
const curry = require("./curry") | ||
function path(pathArr, obj) { | ||
if(obj === undefined && arguments.length === 1){ | ||
return objHolder => path(pathArr, objHolder) | ||
} | ||
if(!(type(obj) === "Object")){ | ||
@@ -24,2 +26,2 @@ return undefined | ||
module.exports = curry(path) | ||
module.exports = path |
{ | ||
"name": "rambda", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "Lightweight alternative to Ramda", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"lint": "node files/lint", | ||
"dev": "jest __tests__/type.js", | ||
"dev": "jest __tests__/logic/com", | ||
"node-build": "webpack --config files/webpack.config.node.js", | ||
@@ -14,0 +14,0 @@ "browser-build": "webpack --config files/webpack.config.js", |
@@ -13,3 +13,7 @@ const helper = require('./modules/internal/helper') | ||
exports.append = require("./modules/append") | ||
exports.all = require("./modules/all") | ||
exports.allPass = require("./modules/allPass") | ||
exports.both = require("./modules/both") | ||
exports.compose = require("./modules/compose") | ||
exports.complement = fn => input => !Boolean(fn(input)) | ||
exports.concat = oppositeHelper("concat") | ||
@@ -22,2 +26,3 @@ exports.contains = require("./modules/contains") | ||
exports.dropLast = require("./modules/dropLast") | ||
exports.either = require("./modules/either") | ||
exports.endsWith = helper("endsWith") | ||
@@ -24,0 +29,0 @@ exports.equals = require("./modules/equals") |
@@ -6,3 +6,3 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda) | ||
Faster alternative to `Ramda` in just 10kB - [Documentation](https://selfrefactor.github.io/rambda/#/) | ||
Faster alternative to `Ramda` in just 12kB - [Documentation](https://selfrefactor.github.io/rambda/#/) | ||
@@ -34,3 +34,3 @@ ## Argumentation | ||
``` | ||
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.4/webVersion.js | ||
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.5/webVersion.js | ||
``` | ||
@@ -98,2 +98,32 @@ | ||
#### all | ||
> all(fn: Function, arr: Array): Boolean | ||
It returns `true` if all members of array `arr` returns `true`, when applied as argument to function `fn`. | ||
``` | ||
const arr = [ 0, 1, 2, 3, 4 ] | ||
const fn = x => x > -1 | ||
R.all(fn, arr) // => true | ||
``` | ||
#### allPass | ||
> allPass(rules: Array<Function>, input: any): Boolean | ||
It returns `true` if all functions of `rules` return `true`, when `input` is their argument. | ||
``` | ||
const input = { | ||
a : 1, | ||
b : 2, | ||
} | ||
const rules = [ | ||
x => x.a === 1, | ||
x => x.b === 2, | ||
] | ||
R.allPass(conditionArr, obj) // => true | ||
``` | ||
#### always | ||
@@ -126,2 +156,17 @@ | ||
#### both | ||
> both(x: Function, y: Function, input: any): Boolean | ||
It returns `true` if both function `x` and function `y` return `true`, when `input` is their argument. | ||
``` | ||
const fn = R.both( | ||
a => a > 10, | ||
a => a < 20 | ||
) | ||
fn(15) //=> true | ||
fn(30) //=> false | ||
``` | ||
#### compose | ||
@@ -140,2 +185,15 @@ | ||
#### complement | ||
> complement(fn: Function): Function | ||
It returns `complemented` function that accept `input` as argument. | ||
The return value of `complemented` is the negative boolean value of `fn(input)`. | ||
``` | ||
R.complement(R.always(0)) // => true | ||
R.complement(R.always(true)) // => false | ||
``` | ||
#### concat | ||
@@ -235,2 +293,14 @@ | ||
#### either | ||
``` | ||
const fn = R.either( | ||
a => a > 10, | ||
a => a % 2 === 0 | ||
) | ||
fn(15) //=> true | ||
fn(6) //=> true | ||
fn(7) //=> false | ||
``` | ||
#### equals | ||
@@ -688,2 +758,6 @@ | ||
#### T | ||
`R.T() // => true` | ||
#### tail | ||
@@ -811,5 +885,2 @@ | ||
#### T | ||
`R.T() // => true` | ||
--- | ||
@@ -868,2 +939,3 @@ | ||
- 0.8.5 Add `R.all`, `R.allPass`, `R.both`, `R.either` and `R.complement` | ||
- 0.8.4 Learning to run `npm test` before `npm publish` the hard way | ||
@@ -870,0 +942,0 @@ - 0.8.3 Add `R.always`, `R.T` and `R.F` |
@@ -1,1 +0,1 @@ | ||
(function webpackUniversalModuleDefinition(c,d){if(typeof exports==='object'&&typeof module==='object')module.exports=d();else if(typeof define==='function'&&define.amd)define([],d);else{var a=d();for(var i in a)(typeof exports==='object'?exports:c)[i]=a[i];}})(this,function(){return function(e){var g={};function __webpack_require__(h){if(g[h]){return g[h].exports;}var j=g[h]={i:h,l:!1,exports:{}};e[h].call(j.exports,j,j.exports,__webpack_require__);j.l=!0;return j.exports;}__webpack_require__.m=e;__webpack_require__.c=g;__webpack_require__.i=function(k){return k;};__webpack_require__.d=function(l,m,n){if(!__webpack_require__.o(l,m)){Object.defineProperty(l,m,{configurable:!1,enumerable:!0,get:n});}};__webpack_require__.n=function(q){var r=q&&q.__esModule?function getDefault(){return q['default'];}:function getModuleExports(){return q;};__webpack_require__.d(r,'a',r);return r;};__webpack_require__.o=function(s,t){return Object.prototype.hasOwnProperty.call(s,t);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=11);}([function(u,v){function curryTwo(w){return(x,y)=>{if(y===void 0){return A=>w(x,A);}return w(x,y);};}u.exports=curryTwo;},function(B,C){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 D=a.toString();if(D.startsWith("async")){return"Async";}else if(D==="[object Promise]"){return"Promise";}else if(D.includes("function")||D.includes("=>")){return"Function";}return"Object";}B.exports=type;},function(E,F,G){const H=G(0);function curryThree(I){return(x,y,z)=>{if(y===void 0){const helper=(J,K)=>{return I(x,J,K);};return H(helper);}else if(z===void 0){return L=>I(x,y,L);}return I(x,y,z);};}E.exports=curryThree;},function(M,N){function baseSlice(O,P,Q){let R=-1,S=O.length;Q=Q>S?S:Q;if(Q<0){Q+=S;}S=P>Q?0:Q-P>>>0;P>>>=0;const T=Array(S);while(++R<S){T[R]=O[R+P];}return T;}M.exports=baseSlice;},function(U,V,W){const X=W(7),Y=W(0);function contains(Z,a1){let b1=-1,c1=!1;while(++b1<a1.length&&!c1){if(X(a1[b1],Z)){c1=!0;}}return c1;}U.exports=Y(contains);},function(d1,e1){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}d1.exports=curry;},function(f1,g1,h1){const i1=h1(0);function drop(j1,a){return a.slice(j1);}f1.exports=i1(drop);},function(k1,l1,m1){const n1=m1(0),o1=m1(1);function equals(a,b){if(a===b){return!0;}const p1=o1(a);if(p1!==o1(b)){return!1;}if(p1==="Array"){const q1=Array.from(a),r1=Array.from(b);return q1.sort().toString()===r1.sort().toString();}if(p1==="Object"){const s1=Object.keys(a);if(s1.length===Object.keys(b).length){if(s1.length===0){return!0;}let t1=!0;s1.map(u1=>{if(t1){const v1=o1(a[u1]),w1=o1(b[u1]);if(v1===w1){if(v1==="Object"){if(Object.keys(a[u1]).length===Object.keys(b[u1]).length){if(Object.keys(a[u1]).length!==0){if(!equals(a[u1],b[u1])){t1=!1;}}}else{t1=!1;}}else if(!equals(a[u1],b[u1])){t1=!1;}}else{t1=!1;}}});return t1;}}return!1;}k1.exports=n1(equals);},function(x1,y1,z1){const A1=z1(0);function map(fn,C1){let D1=-1;const E1=C1.length,F1=Array(E1);while(++D1<E1){F1[D1]=fn(C1[D1]);}return F1;}x1.exports=A1(map);},function(G1,H1,I1){const J1=I1(0);function merge(K1,L1){return Object.assign({},K1,L1);}G1.exports=J1(merge);},function(M1,N1,O1){const P1=O1(28),Q1=O1(29),R1=O1(30),S1=O1(31),T1=O1(32);N1.add=Q1('+');N1.addIndex=O1(12);N1.adjust=O1(13);N1.always=x=>x;N1.any=O1(14);N1.append=O1(15);N1.compose=O1(16);N1.concat=R1("concat");N1.contains=O1(4);N1.curry=O1(5);N1.defaultTo=O1(17);N1.divide=Q1('/');N1.drop=O1(6);N1.dropLast=O1(18);N1.endsWith=P1("endsWith");N1.equals=O1(7);N1.F=()=>!1;N1.filter=O1(19);N1.find=O1(20);N1.findIndex=O1(21);N1.flatten=O1(22);N1.has=O1(23);N1.head=O1(24);N1.ifElse=O1(25);N1.includes=P1("includes");N1.indexOf=O1(26);N1.init=O1(27);N1.join=P1('join');N1.last=O1(33);N1.lastIndexOf=P1("lastIndexOf");N1.length=S1("length");N1.map=O1(8);N1.match=O1(34);N1.merge=O1(9);N1.modulo=Q1('%');N1.multiply=Q1('*');N1.not=O1(35);N1.omit=O1(36);N1.padEnd=P1('padEnd');N1.padStart=P1('padStart');N1.partialCurry=O1(37);N1.path=O1(38);N1.pick=O1(39);N1.pluck=O1(40);N1.prepend=O1(41);N1.prop=O1(42);N1.propEq=O1(43);N1.range=O1(44);N1.reduce=O1(45);N1.repeat=O1(46);N1.replace=O1(47);N1.reverse=T1('reverse');N1.sort=O1(48);N1.sortBy=O1(49);N1.split=O1(50);N1.splitEvery=O1(51);N1.startsWith=P1("startsWith");N1.subtract=Q1('-');N1.T=()=>!0;N1.tail=O1(52);N1.take=O1(53);N1.takeLast=O1(54);N1.test=O1(55);N1.toLower=T1("toLowerCase");N1.toString=T1('toString');N1.toUpper=T1("toUpperCase");N1.trim=T1("trim");N1.type=O1(1);N1.uniq=O1(56);N1.update=O1(57);N1.values=O1(58);},function(U1,V1,W1){const X1=W1(10);U1.exports.R=X1;},function(Y1,Z1){function addIndex(a2){return function(fn,...rest){let c2=0;const newFn=(...args)=>fn.apply(null,[...args,c2++]);return a2.apply(null,[newFn,...rest]);};}Y1.exports=addIndex;},function(d2,e2,f2){const g2=f2(2);function adjust(fn,i2,j2){const k2=j2.concat();return k2.map((l2,m2)=>{if(m2===i2){return fn(j2[i2]);}return l2;});}d2.exports=g2(adjust);},function(n2,o2,p2){const q2=p2(0);function any(fn,s2){let t2=0;while(t2<s2.length){if(fn(s2[t2])){return!0;}t2++;}return!1;}n2.exports=q2(any);},function(u2,v2,w2){const x2=w2(0);function append(y2,z2){const A2=z2.concat();A2.push(y2);return A2;}u2.exports=x2(append);},function(B2,C2){const compose=(...fns)=>D2=>{let E2=fns.slice();while(E2.length>0){D2=E2.pop()(D2);}return D2;};B2.exports=compose;},function(F2,G2,H2){const I2=H2(1);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,O2){const P2=O2(0);function dropLast(Q2,a){return a.slice(0,-Q2);}M2.exports=P2(dropLast);},function(R2,S2,T2){const U2=T2(0);function filter(fn,W2){let X2=-1,Y2=0;const Z2=W2.length,a3=[];while(++X2<Z2){const b3=W2[X2];if(fn(b3)){a3[Y2++]=b3;}}return a3;}R2.exports=U2(filter);},function(c3,d3,e3){const f3=e3(0);function find(fn,h3){return h3.find(fn);}c3.exports=f3(find);},function(i3,j3,k3){const l3=k3(0);function findIndex(fn,n3){const o3=n3.length;let p3=-1;while(++p3<o3){if(fn(n3[p3])){return p3;}}return-1;}i3.exports=l3(findIndex);},function(q3,r3){function flatten(s3,t3){t3=t3===void 0?[]:t3;for(let i=0;i<s3.length;i++){if(Array.isArray(s3[i])){flatten(s3[i],t3);}else{t3.push(s3[i]);}}return t3;}q3.exports=flatten;},function(u3,v3,w3){const x3=w3(0);function has(y3,z3){return z3[y3]!==void 0;}u3.exports=x3(has);},function(A3,B3){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}A3.exports=head;},function(C3,D3,E3){const F3=E3(2);function ifElse(G3,H3,I3){return J3=>{if(G3(J3)===!0){return H3(J3);}return I3(J3);};}C3.exports=F3(ifElse);},function(K3,L3,M3){const N3=M3(0);function indexOf(O3,P3){let Q3=-1;const R3=P3.length;while(++Q3<R3){if(P3[Q3]===O3){return Q3;}}return-1;}K3.exports=N3(indexOf);},function(S3,T3,U3){const V3=U3(3);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?V3(a,0,-1):[];}S3.exports=init;},function(W3,X3){function helper(Y3,x,y){if(x===void 0){return(Z3,a4)=>helper(Y3,Z3,a4);}else if(y===void 0){return b4=>helper(Y3,x,b4);}if(y[Y3]!==void 0){return y[Y3](x);}}W3.exports=helper;},function(c4,d4,e4){const f4=e4(2);function mathHelper(g4,x,y){switch(g4){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}c4.exports=f4(mathHelper);},function(h4,i4){function oppositeHelper(j4,x,y){if(x===void 0){return(k4,l4)=>oppositeHelper(j4,k4,l4);}else if(y===void 0){return m4=>oppositeHelper(j4,x,m4);}if(x[j4]!==void 0){return x[j4](y);}}h4.exports=oppositeHelper;},function(n4,o4){function propHelper(p4,x){if(x===void 0){return q4=>propHelper(p4,q4);}return x[p4];}n4.exports=propHelper;},function(r4,s4){function simpleHelper(t4,x){if(x===void 0){return u4=>simpleHelper(t4,u4);}if(x[t4]!==void 0){return x[t4]();}}r4.exports=simpleHelper;},function(v4,w4){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}v4.exports=last;},function(x4,y4,z4){const A4=z4(0);function match(B4,C4){const D4=C4.match(B4);return D4===null?[]:D4;}x4.exports=A4(match);},function(E4,F4){function not(x){return!x;}E4.exports=not;},function(G4,H4,I4){const J4=I4(1),K4=I4(0);function omit(L4,M4){if(J4(L4)==='String'){L4=L4.split(',').map(x=>x.trim());}const N4={};for(const O4 in M4){if(!L4.includes(O4)){N4[O4]=M4[O4];}}return N4;}G4.exports=K4(omit);},function(P4,Q4,R4){const S4=R4(1),T4=R4(9);function partialCurry(fn,V4={}){return W4=>{if(S4(fn)==="Async"||S4(fn)==="Promise"){return new Promise((X4,Y4)=>{fn(T4(W4,V4)).then(X4).catch(Y4);});}return fn(T4(W4,V4));};}P4.exports=partialCurry;},function(Z4,a5,b5){const c5=b5(1),d5=b5(5);function path(e5,f5){if(!(c5(f5)==="Object")){return void 0;}let g5=f5,h5=0;if(typeof e5==="string"){e5=e5.split(".");}while(h5<e5.length){if(g5===null||g5===void 0){return void 0;}g5=g5[e5[h5]];h5++;}return g5;}Z4.exports=d5(path);},function(i5,j5,k5){const l5=k5(0),m5=k5(1);function pick(n5,o5){if(m5(n5)==='String'){n5=n5.split(',').map(x=>x.trim());}const p5={};let q5=0;while(q5<n5.length){if(n5[q5]in o5){p5[n5[q5]]=o5[n5[q5]];}q5++;}return p5;}i5.exports=l5(pick);},function(r5,s5,t5){const u5=t5(0),v5=t5(8);function pluck(w5,x5){const y5=[];v5(z5=>{if(!(z5[w5]===void 0)){y5.push(z5[w5]);}},x5);return y5;}r5.exports=u5(pluck);},function(A5,B5,C5){const D5=C5(0);function prepend(E5,F5){const G5=F5.concat();G5.unshift(E5);return G5;}A5.exports=D5(prepend);},function(H5,I5,J5){const K5=J5(0);function prop(L5,M5){return M5[L5];}H5.exports=K5(prop);},function(N5,O5,P5){const Q5=P5(2);function propEq(R5,S5,T5){return T5[R5]===S5;}N5.exports=Q5(propEq);},function(U5,V5){function range(W5,X5){const Y5=[];for(let i=W5;i<X5;i++){Y5.push(i);}return Y5;}U5.exports=range;},function(Z5,a6,b6){const c6=b6(2);function reduce(fn,e6,f6){return f6.reduce(fn,e6);}Z5.exports=c6(reduce);},function(g6,h6,i6){const j6=i6(0);function repeat(a,k6){const l6=Array(k6);return l6.fill(a);}g6.exports=j6(repeat);},function(m6,n6,o6){const p6=o6(2);function replace(q6,r6,s6){return s6.replace(q6,r6);}m6.exports=p6(replace);},function(t6,u6,v6){const w6=v6(0);function sort(fn,y6){const z6=y6.concat();return z6.sort(fn);}t6.exports=w6(sort);},function(A6,B6){function sortBy(fn,D6){if(D6===void 0){return E6=>sortBy(fn,E6);}const F6=D6.concat();return F6.sort((a,b)=>{const G6=fn(a),H6=fn(b);return G6<H6?-1:G6>H6?1:0;});}A6.exports=sortBy;},function(I6,J6){function split(K6,L6){if(L6===void 0){return M6=>split(K6,M6);}return L6.split(K6);}I6.exports=split;},function(N6,O6){function splitEvery(P6,a){if(a===void 0){return Q6=>splitEvery(P6,Q6);}P6=P6>1?P6:1;const R6=[];let S6=0;while(S6<a.length){R6.push(a.slice(S6,S6+=P6));}return R6;}N6.exports=splitEvery;},function(T6,U6,V6){const W6=V6(6);function tail(X6){return W6(1,X6);}T6.exports=tail;},function(Y6,Z6,a7){const b7=a7(0),c7=a7(3);function take(d7,a){if(a===void 0){return e7=>take(d7,e7);}else if(typeof a==="string"){return a.slice(0,d7);}return c7(a,0,d7);}Y6.exports=b7(take);},function(f7,g7,h7){const i7=h7(3),j7=h7(0);function takeLast(k7,a){const l7=a.length;k7=k7>l7?l7:k7;if(typeof a==="string"){return a.slice(l7-k7);}k7=l7-k7;return i7(a,k7,l7);}f7.exports=j7(takeLast);},function(m7,n7,o7){const p7=o7(0);function test(q7,r7){return r7.search(q7)===-1?!1:!0;}m7.exports=p7(test);},function(s7,t7,u7){const v7=u7(4);function uniq(w7){let x7=-1;const y7=[];while(++x7<w7.length){const z7=w7[x7];if(!v7(z7,y7)){y7.push(z7);}}return y7;}s7.exports=uniq;},function(A7,B7){function update(C7,D7,E7){if(D7===void 0){return(F7,G7)=>update(C7,F7,G7);}else if(E7===void 0){return H7=>update(C7,D7,H7);}const I7=E7.concat();return I7.fill(D7,C7,C7+1);}A7.exports=update;},function(J7,K7){function values(L7){const M7=[];for(const N7 in L7){M7.push(L7[N7]);}return M7;}J7.exports=values;}]);}); | ||
(function webpackUniversalModuleDefinition(k1,D1){if(typeof exports==='object'&&typeof module==='object')module.exports=D1();else if(typeof define==='function'&&define.amd)define([],D1);else{var a=D1();for(var i in a)(typeof exports==='object'?exports:k1)[i]=a[i];}})(this,function(){return function(O1){var a2={};function __webpack_require__(P2){if(a2[P2]){return a2[P2].exports;}var a3=a2[P2]={i:P2,l:!1,exports:{}};O1[P2].call(a3.exports,a3,a3.exports,__webpack_require__);a3.l=!0;return a3.exports;}__webpack_require__.m=O1;__webpack_require__.c=a2;__webpack_require__.i=function(g3){return g3;};__webpack_require__.d=function(s4,B5,Z5){if(!__webpack_require__.o(s4,B5)){Object.defineProperty(s4,B5,{configurable:!1,enumerable:!0,get:Z5});}};__webpack_require__.n=function(g6){var N7=g6&&g6.__esModule?function getDefault(){return g6['default'];}:function getModuleExports(){return g6;};__webpack_require__.d(N7,'a',N7);return N7;};__webpack_require__.o=function(O7,P7){return Object.prototype.hasOwnProperty.call(O7,P7);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=11);}([function(Q7,R7){function curryTwo(fn){return(x,y)=>{if(y===void 0){return T7=>fn(x,T7);}return fn(x,y);};}Q7.exports=curryTwo;},function(U7,V7){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 W7=a.toString();if(W7.startsWith("async")){return"Async";}else if(W7==="[object Promise]"){return"Promise";}else if(W7.includes("function")||W7.includes("=>")){return"Function";}return"Object";}U7.exports=type;},function(X7,Y7,Z7){const a8=Z7(0);function curryThree(fn){return(x,y,z)=>{if(y===void 0){const helper=(c8,d8)=>{return fn(x,c8,d8);};return a8(helper);}else if(z===void 0){return e8=>fn(x,y,e8);}return fn(x,y,z);};}X7.exports=curryThree;},function(f8,g8){function baseSlice(h8,i8,j8){let k8=-1,l8=h8.length;j8=j8>l8?l8:j8;if(j8<0){j8+=l8;}l8=i8>j8?0:j8-i8>>>0;i8>>>=0;const m8=Array(l8);while(++k8<l8){m8[k8]=h8[k8+i8];}return m8;}f8.exports=baseSlice;},function(n8,o8,p8){const q8=p8(0);function any(fn,s8){let t8=0;while(t8<s8.length){if(fn(s8[t8])){return!0;}t8++;}return!1;}n8.exports=q8(any);},function(u8,v8,w8){const x8=w8(7),y8=w8(0);function contains(z8,A8){let B8=-1,C8=!1;while(++B8<A8.length&&!C8){if(x8(A8[B8],z8)){C8=!0;}}return C8;}u8.exports=y8(contains);},function(D8,E8,F8){const G8=F8(0);function drop(H8,a){return a.slice(H8);}D8.exports=G8(drop);},function(I8,J8,K8){const L8=K8(0),M8=K8(1);function equals(a,b){if(a===b){return!0;}const N8=M8(a);if(N8!==M8(b)){return!1;}if(N8==="Array"){const O8=Array.from(a),P8=Array.from(b);return O8.sort().toString()===P8.sort().toString();}if(N8==="Object"){const Q8=Object.keys(a);if(Q8.length===Object.keys(b).length){if(Q8.length===0){return!0;}let R8=!0;Q8.map(S8=>{if(R8){const T8=M8(a[S8]),U8=M8(b[S8]);if(T8===U8){if(T8==="Object"){if(Object.keys(a[S8]).length===Object.keys(b[S8]).length){if(Object.keys(a[S8]).length!==0){if(!equals(a[S8],b[S8])){R8=!1;}}}else{R8=!1;}}else if(!equals(a[S8],b[S8])){R8=!1;}}else{R8=!1;}}});return R8;}}return!1;}I8.exports=L8(equals);},function(V8,W8,X8){const Y8=X8(0);function map(fn,a9){let b9=-1;const c9=a9.length,d9=Array(c9);while(++b9<c9){d9[b9]=fn(a9[b9]);}return d9;}V8.exports=Y8(map);},function(e9,f9,g9){const h9=g9(0);function merge(i9,j9){return Object.assign({},i9,j9);}e9.exports=h9(merge);},function(k9,l9,m9){const n9=m9(32),o9=m9(33),p9=m9(34),q9=m9(35),r9=m9(36);l9.add=o9('+');l9.addIndex=m9(12);l9.adjust=m9(13);l9.always=x=>x;l9.any=m9(4);l9.append=m9(16);l9.all=m9(14);l9.allPass=m9(15);l9.both=m9(17);l9.compose=m9(18);l9.complement=fn=>t9=>!Boolean(fn(t9));l9.concat=p9("concat");l9.contains=m9(5);l9.curry=m9(19);l9.defaultTo=m9(20);l9.divide=o9('/');l9.drop=m9(6);l9.dropLast=m9(21);l9.either=m9(22);l9.endsWith=n9("endsWith");l9.equals=m9(7);l9.F=()=>!1;l9.filter=m9(23);l9.find=m9(24);l9.findIndex=m9(25);l9.flatten=m9(26);l9.has=m9(27);l9.head=m9(28);l9.ifElse=m9(29);l9.includes=n9("includes");l9.indexOf=m9(30);l9.init=m9(31);l9.join=n9('join');l9.last=m9(37);l9.lastIndexOf=n9("lastIndexOf");l9.length=q9("length");l9.map=m9(8);l9.match=m9(38);l9.merge=m9(9);l9.modulo=o9('%');l9.multiply=o9('*');l9.not=m9(39);l9.omit=m9(40);l9.padEnd=n9('padEnd');l9.padStart=n9('padStart');l9.partialCurry=m9(41);l9.path=m9(42);l9.pick=m9(43);l9.pluck=m9(44);l9.prepend=m9(45);l9.prop=m9(46);l9.propEq=m9(47);l9.range=m9(48);l9.reduce=m9(49);l9.repeat=m9(50);l9.replace=m9(51);l9.reverse=r9('reverse');l9.sort=m9(52);l9.sortBy=m9(53);l9.split=m9(54);l9.splitEvery=m9(55);l9.startsWith=n9("startsWith");l9.subtract=o9('-');l9.T=()=>!0;l9.tail=m9(56);l9.take=m9(57);l9.takeLast=m9(58);l9.test=m9(59);l9.toLower=r9("toLowerCase");l9.toString=r9('toString');l9.toUpper=r9("toUpperCase");l9.trim=r9("trim");l9.type=m9(1);l9.uniq=m9(60);l9.update=m9(61);l9.values=m9(62);},function(u9,v9,w9){const x9=w9(10);u9.exports.R=x9;},function(y9,z9){function addIndex(A9){return function(fn,...rest){let C9=0;const newFn=(...args)=>fn.apply(null,[...args,C9++]);return A9.apply(null,[newFn,...rest]);};}y9.exports=addIndex;},function(D9,E9,F9){const G9=F9(2);function adjust(fn,I9,J9){const K9=J9.concat();return K9.map((L9,M9)=>{if(M9===I9){return fn(J9[I9]);}return L9;});}D9.exports=G9(adjust);},function(N9,O9,P9){const{filter}=P9(63);function all(Q9,R9){if(R9===void 0&&arguments.length===1){return S9=>all(Q9,S9);}return filter(Q9,R9).length===R9.length;}N9.exports=all;},function(T9,U9,V9){const W9=V9(4);function allPass(X9,x){if(x===void 0&&arguments.length===1){return Y9=>allPass(Y9,xHolder);}return!W9(Z9=>!Z9(x))(X9);}T9.exports=allPass;},function(a10,b10,c10){const d10=c10(0);function append(val,arr){const g10=arr.concat();g10.push(val);return g10;}a10.exports=d10(append);},function(h10,i10,j10){const k10=j10(0);function both(x,y){return l10=>x(l10)&&y(l10);}h10.exports=k10(both);},function(m10,n10){const compose=(...fns)=>o10=>{let p10=fns.slice();while(p10.length>0){o10=p10.pop()(o10);}return o10;};m10.exports=compose;},function(q10,r10){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}q10.exports=curry;},function(s10,t10,u10){const v10=u10(1);function defaultTo(w10,x10){if(arguments.length===1){return y10=>defaultTo(w10,y10);}return x10===void 0||!(v10(x10)===v10(w10))?w10:x10;}s10.exports=defaultTo;},function(z10,A10,B10){const C10=B10(0);function dropLast(D10,a){return a.slice(0,-D10);}z10.exports=C10(dropLast);},function(E10,F10,G10){const H10=G10(0);function either(x,y){return I10=>x(I10)||y(I10);}E10.exports=H10(either);},function(J10,K10,L10){const M10=L10(0);function filter(fn,arr){let P10=-1,Q10=0;const len=arr.length,S10=[];while(++P10<len){const T10=arr[P10];if(fn(T10)){S10[Q10++]=T10;}}return S10;}J10.exports=M10(filter);},function(U10,V10,W10){const X10=W10(0);function find(fn,arr){return arr.find(fn);}U10.exports=X10(find);},function(a11,b11,c11){const d11=c11(0);function findIndex(fn,arr){const g11=arr.length;let h11=-1;while(++h11<g11){if(fn(arr[h11])){return h11;}}return-1;}a11.exports=d11(findIndex);},function(i11,j11){function flatten(arr,l11){l11=l11===void 0?[]:l11;for(let i=0;i<arr.length;i++){if(Array.isArray(arr[i])){flatten(arr[i],l11);}else{l11.push(arr[i]);}}return l11;}i11.exports=flatten;},function(m11,n11,o11){const p11=o11(0);function has(q11,obj){return obj[q11]!==void 0;}m11.exports=p11(has);},function(s11,t11){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}s11.exports=head;},function(u11,v11,w11){const x11=w11(2);function ifElse(y11,z11,A11){return B11=>{if(y11(B11)===!0){return z11(B11);}return A11(B11);};}u11.exports=x11(ifElse);},function(C11,D11,E11){const F11=E11(0);function indexOf(G11,arr){let I11=-1;const J11=arr.length;while(++I11<J11){if(arr[I11]===G11){return I11;}}return-1;}C11.exports=F11(indexOf);},function(K11,L11,M11){const N11=M11(3);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?N11(a,0,-1):[];}K11.exports=init;},function(O11,P11){function helper(Q11,x,y){if(x===void 0){return(R11,S11)=>helper(Q11,R11,S11);}else if(y===void 0){return T11=>helper(Q11,x,T11);}if(y[Q11]!==void 0){return y[Q11](x);}}O11.exports=helper;},function(U11,V11,W11){const X11=W11(2);function mathHelper(Y11,x,y){switch(Y11){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}U11.exports=X11(mathHelper);},function(Z11,a12){function oppositeHelper(b12,x,y){if(x===void 0){return(c12,d12)=>oppositeHelper(b12,c12,d12);}else if(y===void 0){return e12=>oppositeHelper(b12,x,e12);}if(x[b12]!==void 0){return x[b12](y);}}Z11.exports=oppositeHelper;},function(f12,g12){function propHelper(h12,x){if(x===void 0){return i12=>propHelper(h12,i12);}return x[h12];}f12.exports=propHelper;},function(j12,k12){function simpleHelper(l12,x){if(x===void 0){return m12=>simpleHelper(l12,m12);}if(x[l12]!==void 0){return x[l12]();}}j12.exports=simpleHelper;},function(n12,o12){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}n12.exports=last;},function(p12,q12,r12){const s12=r12(0);function match(t12,str){const v12=str.match(t12);return v12===null?[]:v12;}p12.exports=s12(match);},function(w12,x12){function not(x){return!x;}w12.exports=not;},function(y12,z12,A12){const B12=A12(1),C12=A12(0);function omit(D12,obj){if(B12(D12)==='String'){D12=D12.split(',').map(x=>x.trim());}const F12={};for(const key in obj){if(!D12.includes(key)){F12[key]=obj[key];}}return F12;}y12.exports=C12(omit);},function(H12,I12,J12){const K12=J12(1),L12=J12(9);function partialCurry(fn,N12={}){return O12=>{if(K12(fn)==="Async"||K12(fn)==="Promise"){return new Promise((P12,Q12)=>{fn(L12(O12,N12)).then(P12).catch(Q12);});}return fn(L12(O12,N12));};}H12.exports=partialCurry;},function(R12,S12,T12){const U12=T12(1);function path(V12,obj){if(obj===void 0&&arguments.length===1){return X12=>path(V12,X12);}if(!(U12(obj)==="Object")){return void 0;}let Y12=obj,Z12=0;if(typeof V12==="string"){V12=V12.split(".");}while(Z12<V12.length){if(Y12===null||Y12===void 0){return void 0;}Y12=Y12[V12[Z12]];Z12++;}return Y12;}R12.exports=path;},function(a13,b13,c13){const d13=c13(0),e13=c13(1);function pick(f13,obj){if(e13(f13)==='String'){f13=f13.split(',').map(x=>x.trim());}const h13={};let i13=0;while(i13<f13.length){if(f13[i13]in obj){h13[f13[i13]]=obj[f13[i13]];}i13++;}return h13;}a13.exports=d13(pick);},function(j13,k13,l13){const m13=l13(0),map=l13(8);function pluck(o13,arr){const q13=[];map(val=>{if(!(val[o13]===void 0)){q13.push(val[o13]);}},arr);return q13;}j13.exports=m13(pluck);},function(s13,t13,u13){const v13=u13(0);function prepend(val,arr){const y13=arr.concat();y13.unshift(val);return y13;}s13.exports=v13(prepend);},function(z13,A13,B13){const C13=B13(0);function prop(key,obj){return obj[key];}z13.exports=C13(prop);},function(F13,G13,H13){const I13=H13(2);function propEq(key,val,obj){return obj[key]===val;}F13.exports=I13(propEq);},function(M13,N13){function range(O13,end){const Q13=[];for(let i=O13;i<end;i++){Q13.push(i);}return Q13;}M13.exports=range;},function(R13,S13,T13){const U13=T13(2);function reduce(fn,W13,arr){return arr.reduce(fn,W13);}R13.exports=U13(reduce);},function(Y13,Z13,a14){const b14=a14(0);function repeat(a,num){const d14=Array(num);return d14.fill(a);}Y13.exports=b14(repeat);},function(e14,f14,g14){const h14=g14(2);function replace(i14,j14,str){return str.replace(i14,j14);}e14.exports=h14(replace);},function(l14,m14,n14){const o14=n14(0);function sort(fn,arr){const r14=arr.concat();return r14.sort(fn);}l14.exports=o14(sort);},function(s14,t14){function sortBy(fn,arr){if(arr===void 0){return w14=>sortBy(fn,w14);}const x14=arr.concat();return x14.sort((a,b)=>{const fnA=fn(a),fnB=fn(b);return fnA<fnB?-1:fnA>fnB?1:0;});}s14.exports=sortBy;},function(A14,B14){function split(C14,str){if(str===void 0){return E14=>split(C14,E14);}return str.split(C14);}A14.exports=split;},function(F14,G14){function splitEvery(num,a){if(a===void 0){return I14=>splitEvery(num,I14);}num=num>1?num:1;const J14=[];let K14=0;while(K14<a.length){J14.push(a.slice(K14,K14+=num));}return J14;}F14.exports=splitEvery;},function(L14,M14,N14){const O14=N14(6);function tail(arr){return O14(1,arr);}L14.exports=tail;},function(Q14,R14,S14){const T14=S14(0),U14=S14(3);function take(V14,a){if(a===void 0){return W14=>take(V14,W14);}else if(typeof a==="string"){return a.slice(0,V14);}return U14(a,0,V14);}Q14.exports=T14(take);},function(X14,Y14,Z14){const a15=Z14(3),b15=Z14(0);function takeLast(c15,a){const len=a.length;c15=c15>len?len:c15;if(typeof a==="string"){return a.slice(len-c15);}c15=len-c15;return a15(a,c15,len);}X14.exports=b15(takeLast);},function(e15,f15,g15){const h15=g15(0);function test(i15,str){return str.search(i15)===-1?!1:!0;}e15.exports=h15(test);},function(k15,l15,m15){const n15=m15(5);function uniq(arr){let p15=-1;const q15=[];while(++p15<arr.length){const r15=arr[p15];if(!n15(r15,q15)){q15.push(r15);}}return q15;}k15.exports=uniq;},function(s15,t15){function update(u15,v15,arr){if(v15===void 0){return(x15,y15)=>update(u15,x15,y15);}else if(arr===void 0){return z15=>update(u15,v15,z15);}const A15=arr.concat();return A15.fill(v15,u15,u15+1);}s15.exports=update;},function(B15,C15){function values(obj){const E15=[];for(const key in obj){E15.push(obj[key]);}return E15;}B15.exports=values;},function(G15,H15){G15.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(var m4 in j4){if(!i4.includes(m4)){l4[m4]=j4[m4];}}return l4;}f4.exports=omit;},function(n4,o4,p4){"use strict";var q4=p4(0),r4=p4(6);function curry(fn){var t4=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(u4){if(q4(fn)==="Async"){return new Promise(function(v4,w4){fn(r4(u4,t4)).then(v4).catch(w4);});}return fn(r4(u4,t4));};}n4.exports=curry;},function(x4,y4,z4){"use strict";function path(A4,B4){if(B4===void 0){return function(C4){return path(A4,C4);};}var D4=B4,E4=0;if(typeof A4==="string"){A4=A4.split(".");}while(E4<A4.length){if(D4===null){return void 0;}D4=D4[A4[E4]];E4++;}return D4;}x4.exports=path;},function(F4,G4,H4){"use strict";function pick(I4,J4){if(J4===void 0){return function(K4){return pick(I4,K4);};}var L4={},M4=0;while(M4<I4.length){if(I4[M4]in J4){L4[I4[M4]]=J4[I4[M4]];}M4++;}return L4;}F4.exports=pick;},function(N4,O4,P4){"use strict";var Q4=P4(5);function pluck(R4,S4){if(S4===void 0){return function(T4){return pluck(R4,T4);};}var U4=[];Q4(function(V4){if(!(V4[R4]===void 0)){U4.push(V4[R4]);}},S4);return U4;}N4.exports=pluck;},function(W4,X4,Y4){"use strict";function prepend(Z4,a5){if(a5===void 0){return function(b5){return prepend(Z4,b5);};}var c5=a5.concat();c5.unshift(Z4);return c5;}W4.exports=prepend;},function(d5,e5,f5){"use strict";function prop(g5,h5){if(h5===void 0){return function(i5){return prop(g5,i5);};}return h5[g5];}d5.exports=prop;},function(j5,k5,l5){"use strict";function propEq(m5,n5,o5){if(n5===void 0){return function(p5,q5){return propEq(m5,p5,q5);};}else if(o5===void 0){return function(r5){return propEq(m5,n5,r5);};}return o5[m5]===n5;}j5.exports=propEq;},function(s5,t5,u5){"use strict";function range(v5,w5){for(var x5=[],i=v5;i<w5;i++){x5.push(i);}return x5;}s5.exports=range;},function(y5,z5,A5){"use strict";function reduce(fn,C5,D5){if(C5===void 0){return function(E5,F5){return reduce(fn,E5,F5);};}else if(D5===void 0){return function(G5){return reduce(fn,C5,G5);};}return D5.reduce(fn,C5);}y5.exports=reduce;},function(H5,I5,J5){"use strict";function repeat(a,K5){if(K5===void 0){return function(L5){return repeat(a,L5);};}var M5=Array(K5);return M5.fill(a);}H5.exports=repeat;},function(N5,O5,P5){"use strict";function replace(Q5,R5,S5){if(R5===void 0){return function(T5,U5){return replace(Q5,T5,U5);};}else if(S5===void 0){return function(V5){return replace(Q5,R5,V5);};}return S5.replace(Q5,R5);}N5.exports=replace;},function(W5,X5,Y5){"use strict";function sort(fn,a6){if(a6===void 0){return function(b6){return sort(fn,b6);};}var c6=a6.concat();return c6.sort(fn);}W5.exports=sort;},function(d6,e6,f6){"use strict";function sortBy(fn,h6){if(h6===void 0){return function(i6){return sortBy(fn,i6);};}var j6=h6.concat();return j6.sort(function(a,b){var k6=fn(a),l6=fn(b);return k6<l6?-1:k6>l6?1:0;});}d6.exports=sortBy;},function(m6,n6,o6){"use strict";function split(p6,q6){if(q6===void 0){return function(r6){return split(p6,r6);};}return q6.split(p6);}m6.exports=split;},function(s6,t6,u6){"use strict";function splitEvery(v6,a){if(a===void 0){return function(w6){return splitEvery(v6,w6);};}v6=v6>1?v6:1;var x6=[],y6=0;while(y6<a.length){x6.push(a.slice(y6,y6+=v6));}return x6;}s6.exports=splitEvery;},function(z6,A6,B6){"use strict";function subtract(a,b){if(b===void 0){return function(C6){return subtract(a,C6);};}return a-b;}z6.exports=subtract;},function(D6,E6,F6){"use strict";var G6=F6(3);function tail(H6){return G6(1,H6);}D6.exports=tail;},function(I6,J6,K6){"use strict";var L6=K6(1);function take(M6,a){if(a===void 0){return function(N6){return take(M6,N6);};}else if(typeof a==="string"){return a.slice(0,M6);}return L6(a,0,M6);}I6.exports=take;},function(O6,P6,Q6){"use strict";var R6=Q6(1);function takeLast(S6,a){if(a===void 0){return function(T6){return takeLast(S6,T6);};}var U6=a.length;S6=S6>U6?U6:S6;if(typeof a==="string"){return a.slice(U6-S6);}S6=U6-S6;return R6(a,S6,U6);}O6.exports=takeLast;},function(V6,W6,X6){"use strict";function test(Y6,Z6){if(Z6===void 0){return function(a7){return test(Y6,a7);};}return Z6.search(Y6)===-1?!1:!0;}V6.exports=test;},function(b7,c7,d7){"use strict";function toLower(e7){return e7.toLowerCase();}b7.exports=toLower;},function(f7,g7,h7){"use strict";function toUpper(i7){return i7.toUpperCase();}f7.exports=toUpper;},function(j7,k7,l7){"use strict";function trim(m7){return m7.trim();}j7.exports=trim;},function(n7,o7,p7){"use strict";var q7=p7(2);function uniq(r7){var s7=-1,t7=[];while(++s7<r7.length){var u7=r7[s7];if(!q7(u7,t7)){t7.push(u7);}}return t7;}n7.exports=uniq;},function(v7,w7,x7){"use strict";function update(y7,z7,A7){if(z7===void 0){return function(B7,C7){return update(y7,B7,C7);};}else if(A7===void 0){return function(D7){return update(y7,z7,D7);};}var E7=A7.concat();return E7.fill(z7,y7,y7+1);}v7.exports=update;},function(F7,G7,H7){"use strict";function values(I7){var J7=[];for(key in I7){J7.push(I7[key]);}return J7;}F7.exports=values;},function(K7,L7,M7){"use strict";L7.add=M7(7);L7.addIndex=M7(8);L7.any=M7(10);L7.adjust=M7(9);L7.append=M7(11);L7.compose=M7(12);L7.contains=M7(2);L7.curry=M7(13);L7.defaultTo=M7(14);L7.drop=M7(3);L7.dropLast=M7(15);L7.equals=M7(4);L7.filter=M7(16);L7.find=M7(17);L7.findIndex=M7(18);L7.flatten=M7(19);L7.has=M7(20);L7.head=M7(21);L7.indexOf=M7(22);L7.init=M7(23);L7.join=M7(24);L7.last=M7(25);L7.length=M7(26);L7.map=M7(5);L7.match=M7(27);L7.merge=M7(6);L7.omit=M7(28);L7.path=M7(30);L7.partialCurry=M7(29);L7.pick=M7(31);L7.pluck=M7(32);L7.prepend=M7(33);L7.prop=M7(34);L7.propEq=M7(35);L7.range=M7(36);L7.repeat=M7(38);L7.replace=M7(39);L7.sort=M7(40);L7.sortBy=M7(41);L7.split=M7(42);L7.splitEvery=M7(43);L7.subtract=M7(44);L7.tail=M7(45);L7.take=M7(46);L7.takeLast=M7(47);L7.test=M7(48);L7.toLower=M7(49);L7.toUpper=M7(50);L7.trim=M7(51);L7.type=M7(0);L7.uniq=M7(52);L7.update=M7(53);L7.values=M7(54);L7.reduce=M7(37);}]);}]);}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1359013
185
5263
1049