Comparing version 0.8.6 to 0.8.7
@@ -55,5 +55,5 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda) | ||
- Rambda's **defaultTo** approve incoming argument only if it has the same type as the default argument. | ||
- Rambda's **reverse** modifies the array, instead of returning reversed copy of it. | ||
- Rambda's **partialCurry** is not part of Ramda API. | ||
@@ -101,3 +101,3 @@ | ||
It returns `true` if all members of array `arr` returns `true`, when applied as argument to function `fn`. | ||
It returns `true` if all members of array `arr` returns `true`, when applied as argument to function `fn`. | ||
@@ -287,3 +287,3 @@ ``` | ||
"foo-bar" | ||
) // => true | ||
) // => true | ||
@@ -465,7 +465,7 @@ R.endsWith( | ||
> lastIndexOf(x: any, arr: Array): Number | ||
> lastIndexOf(x: any, arr: Array): Number | ||
``` | ||
R.lastIndexOf(1, [1, 2, 3, 1, 2]) // => 3 | ||
R.lastIndexOf(10, [1, 2, 3, 1, 2]) // => -1 | ||
R.lastIndexOf(1, [1, 2, 3, 1, 2]) // => 3 | ||
R.lastIndexOf(10, [1, 2, 3, 1, 2]) // => -1 | ||
``` | ||
@@ -693,3 +693,3 @@ | ||
const arr = [1, 2] | ||
R.reverse(arr) | ||
R.reverse(arr) | ||
console.log(arr) // => [2, 1] | ||
@@ -755,3 +755,3 @@ ``` | ||
"foo-bar" | ||
) // => true | ||
) // => true | ||
@@ -967,2 +967,249 @@ R.endsWith( | ||
## Browse by category | ||
### Function | ||
[addIndex](#addindex) | ||
[always](#always) | ||
[compose](#compose) | ||
[curry](#curry) | ||
[F](#f) | ||
[identity](#identity) | ||
[T](#t) | ||
[tap](#tap) | ||
### Math | ||
[add](#add) | ||
[divide](#divide) | ||
[modulo](#modulo) | ||
[multiply](#multiply) | ||
[subtract](#subtract) | ||
### List | ||
[adjust](#adjust) | ||
[all](#all) | ||
[any](#any) | ||
[append](#append) | ||
[concat](#concat) | ||
[contains](#contains) | ||
[drop](#drop) | ||
[dropLast](#droplast) | ||
[endsWith](#endswith) | ||
[filter](#filter) | ||
[find](#find) | ||
[findIndex](#findindex) | ||
[flatten](#flatten) | ||
[head](#head) | ||
[indexOf](#indexof) | ||
[init](#init) | ||
[join](#join) | ||
[last](#last) | ||
[lastIndexOf](#lastindexof) | ||
[length](#length) | ||
[map](#map) | ||
[pluck](#pluck) | ||
[prepend](#prepend) | ||
[range](#range) | ||
[reduce](#reduce) | ||
[repeat](#repeat) | ||
[reverse](#reverse) | ||
[sort](#sort) | ||
[splitEvery](#splitevery) | ||
[startsWith](#startswith) | ||
[tail](#tail) | ||
[take](#take) | ||
[takeLast](#takelast) | ||
[uniq](#uniq) | ||
[update](#update) | ||
### Logic | ||
[allPass](#allpass) | ||
[both](#both) | ||
[complement](#complement) | ||
[defaultTo](#defaultto) | ||
[either](#either) | ||
[ifElse](#ifelse) | ||
[not](#not) | ||
### Object | ||
[has](#has) | ||
[merge](#merge) | ||
[omit](#omit) | ||
[path](#path) | ||
[pick](#pick) | ||
[prop](#prop) | ||
[values](#values) | ||
### Relation | ||
[equals](#equals) | ||
[propEq](#propeq) | ||
[sortBy](#sortby) | ||
### String | ||
[match](#match) | ||
[replace](#replace) | ||
[split](#split) | ||
[test](#test) | ||
[toLower](#tolower) | ||
[toString](#tostring) | ||
[toUpper](#toupper) | ||
[trim](#trim) | ||
## Contribution guidelines | ||
@@ -969,0 +1216,0 @@ |
1650
index.js
@@ -1,78 +0,23 @@ | ||
module.exports = | ||
/******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
/******/ var installedModules = {}; | ||
/******/ | ||
/******/ // The require function | ||
/******/ function __webpack_require__(moduleId) { | ||
/******/ | ||
/******/ // Check if module is in cache | ||
/******/ if(installedModules[moduleId]) { | ||
/******/ return installedModules[moduleId].exports; | ||
/******/ } | ||
/******/ // Create a new module (and put it into the cache) | ||
/******/ var module = installedModules[moduleId] = { | ||
/******/ i: moduleId, | ||
/******/ l: false, | ||
/******/ exports: {} | ||
/******/ }; | ||
/******/ | ||
/******/ // Execute the module function | ||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | ||
/******/ | ||
/******/ // Flag the module as loaded | ||
/******/ module.l = true; | ||
/******/ | ||
/******/ // Return the exports of the module | ||
/******/ return module.exports; | ||
/******/ } | ||
/******/ | ||
/******/ | ||
/******/ // expose the modules object (__webpack_modules__) | ||
/******/ __webpack_require__.m = modules; | ||
/******/ | ||
/******/ // expose the module cache | ||
/******/ __webpack_require__.c = installedModules; | ||
/******/ | ||
/******/ // identity function for calling harmony imports with the correct context | ||
/******/ __webpack_require__.i = function(value) { return value; }; | ||
/******/ | ||
/******/ // define getter function for harmony exports | ||
/******/ __webpack_require__.d = function(exports, name, getter) { | ||
/******/ if(!__webpack_require__.o(exports, name)) { | ||
/******/ Object.defineProperty(exports, name, { | ||
/******/ configurable: false, | ||
/******/ enumerable: true, | ||
/******/ get: getter | ||
/******/ }); | ||
/******/ } | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
/******/ __webpack_require__.n = function(module) { | ||
/******/ var getter = module && module.__esModule ? | ||
/******/ function getDefault() { return module['default']; } : | ||
/******/ function getModuleExports() { return module; }; | ||
/******/ __webpack_require__.d(getter, 'a', getter); | ||
/******/ return getter; | ||
/******/ }; | ||
/******/ | ||
/******/ // Object.prototype.hasOwnProperty.call | ||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | ||
/******/ | ||
/******/ // __webpack_public_path__ | ||
/******/ __webpack_require__.p = ""; | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 61); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
'use strict'; | ||
"use strict"; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function helper(method, x, y) { | ||
if (x === undefined) { | ||
return function (xHolder, yHolder) { | ||
return helper(method, xHolder, yHolder); | ||
}; | ||
} else if (y === undefined) { | ||
return function (yHolder) { | ||
return helper(method, x, yHolder); | ||
}; | ||
} | ||
if (y[method] !== undefined) { | ||
return y[method](x); | ||
} | ||
} | ||
function curry(fn) { | ||
var helper_1 = helper; | ||
function curry$1(fn) { | ||
return function (x, y) { | ||
@@ -88,59 +33,4 @@ if (y === undefined) { | ||
module.exports = curry; | ||
var curry_1 = curry$1; | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"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 === undefined) { | ||
return "Undefined"; | ||
} else if (a instanceof RegExp) { | ||
return "RegExp"; | ||
} | ||
var asStr = a.toString(); | ||
if (asStr.startsWith("async")) { | ||
return "Async"; | ||
} else if (asStr === "[object Promise]") { | ||
return "Promise"; | ||
} else if (asStr.includes("function") || asStr.includes("=>")) { | ||
return "Function"; | ||
} | ||
return "Object"; | ||
} | ||
module.exports = type; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function curryThree(fn) { | ||
@@ -152,3 +42,3 @@ return function (x, y, z) { | ||
}; | ||
return curry(helper); | ||
return curry_1(helper); | ||
} else if (z === undefined) { | ||
@@ -163,42 +53,99 @@ return function (zHolder) { | ||
module.exports = curryThree; | ||
var curryThree_1 = curryThree; | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function mathHelper(operation, x, y) { | ||
switch (operation) { | ||
case '+': | ||
return x + y; | ||
case '-': | ||
return x - y; | ||
case '/': | ||
return x / y; | ||
case '*': | ||
return x * y; | ||
case '%': | ||
return x % y; | ||
} | ||
} | ||
"use strict"; | ||
var mathHelper_1 = curryThree_1(mathHelper); | ||
function oppositeHelper(method, x, y) { | ||
if (x === undefined) { | ||
return function (xHolder, yHolder) { | ||
return oppositeHelper(method, xHolder, yHolder); | ||
}; | ||
} else if (y === undefined) { | ||
return function (yHolder) { | ||
return oppositeHelper(method, x, yHolder); | ||
}; | ||
} | ||
if (x[method] !== undefined) { | ||
return x[method](y); | ||
} | ||
} | ||
function baseSlice(array, start, end) { | ||
var index = -1; | ||
var length = array.length; | ||
var oppositeHelper_1 = oppositeHelper; | ||
end = end > length ? length : end; | ||
if (end < 0) { | ||
end += length; | ||
function propHelper(method, x) { | ||
if (x === undefined) { | ||
return function (xHolder) { | ||
return propHelper(method, xHolder); | ||
}; | ||
} | ||
length = start > end ? 0 : end - start >>> 0; | ||
start >>>= 0; | ||
var result = Array(length); | ||
while (++index < length) { | ||
result[index] = array[index + start]; | ||
return x[method]; | ||
} | ||
var propHelper_1 = propHelper; | ||
function simpleHelper(method, x) { | ||
if (x === undefined) { | ||
return function (xHolder) { | ||
return simpleHelper(method, xHolder); | ||
}; | ||
} | ||
if (x[method] !== undefined) { | ||
return x[method](); | ||
} | ||
} | ||
return result; | ||
var simpleHelper_1 = simpleHelper; | ||
function addIndex$1(functor) { | ||
return function (fn) { | ||
var cnt = 0; | ||
var newFn = function newFn() { | ||
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
return fn.apply(null, [].concat(args, [cnt++])); | ||
}; | ||
for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
rest[_key - 1] = arguments[_key]; | ||
} | ||
return functor.apply(null, [newFn].concat(rest)); | ||
}; | ||
} | ||
module.exports = baseSlice; | ||
var addIndex_1 = addIndex$1; | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function adjust$1(fn, index, arr) { | ||
var clone = arr.concat(); | ||
"use strict"; | ||
return clone.map(function (val, key) { | ||
if (key === index) { | ||
return fn(arr[index]); | ||
} | ||
return val; | ||
}); | ||
} | ||
var curry = __webpack_require__(0); | ||
var adjust_1 = curryThree_1(adjust$1); | ||
function any(fn, arr) { | ||
function any$1(fn, arr) { | ||
@@ -216,54 +163,129 @@ var counter = 0; | ||
module.exports = curry(any); | ||
var any_1 = curry_1(any$1); | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function append$1(val, arr) { | ||
var clone = arr.concat(); | ||
clone.push(val); | ||
"use strict"; | ||
return clone; | ||
} | ||
var append_1 = curry_1(append$1); | ||
var equals = __webpack_require__(7); | ||
var curry = __webpack_require__(0); | ||
function filter$1(fn, arr) { | ||
var index = -1; | ||
var resIndex = 0; | ||
var len = arr.length; | ||
var willReturn = []; | ||
function contains(val, arr) { | ||
var index = -1; | ||
var flag = false; | ||
while (++index < arr.length && !flag) { | ||
if (equals(arr[index], val)) { | ||
flag = true; | ||
while (++index < len) { | ||
var value = arr[index]; | ||
if (fn(value)) { | ||
willReturn[resIndex++] = value; | ||
} | ||
} | ||
return flag; | ||
return willReturn; | ||
} | ||
module.exports = curry(contains); | ||
var filter_1 = curry_1(filter$1); | ||
/***/ }), | ||
/* 6 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function all$1(condition, arr) { | ||
if (arguments.length === 1) { | ||
return function (arrHolder) { | ||
return all$1(condition, arrHolder); | ||
}; | ||
} | ||
"use strict"; | ||
return filter_1(condition, arr).length === arr.length; | ||
} | ||
var all_1 = all$1; | ||
var curry = __webpack_require__(0); | ||
function allPass$1(conditions, x) { | ||
if (arguments.length === 1) { | ||
return function (conditions) { | ||
return allPass$1(conditions, xHolder); | ||
}; | ||
} | ||
return !any_1(function (condition) { | ||
return !condition(x); | ||
})(conditions); | ||
} | ||
function drop(dropNumber, a) { | ||
return a.slice(dropNumber); | ||
var allPass_1 = allPass$1; | ||
function both$1(x, y) { | ||
return function (input) { | ||
return x(input) && y(input); | ||
}; | ||
} | ||
module.exports = curry(drop); | ||
var both_1 = curry_1(both$1); | ||
/***/ }), | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function createCommonjsModule(fn, module) { | ||
return module = { exports: {} }, fn(module, module.exports), module.exports; | ||
} | ||
"use strict"; | ||
var compose_1 = createCommonjsModule(function (module) { | ||
// Taken from https://github.com/getify/Functional-Light-JS/blob/master/ch4.md | ||
var compose = function compose() { | ||
for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) { | ||
fns[_key] = arguments[_key]; | ||
} | ||
return function (result) { | ||
var list = fns.slice(); | ||
var curry = __webpack_require__(0); | ||
var type = __webpack_require__(1); | ||
while (list.length > 0) { | ||
result = list.pop()(result); | ||
} | ||
function equals(a, b) { | ||
return result; | ||
}; | ||
}; | ||
module.exports = compose; | ||
}); | ||
function type$1(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 === undefined) { | ||
return "Undefined"; | ||
} else if (a instanceof RegExp) { | ||
return "RegExp"; | ||
} | ||
var asStr = a.toString(); | ||
if (asStr.startsWith("async")) { | ||
return "Async"; | ||
} else if (asStr === "[object Promise]") { | ||
return "Promise"; | ||
} else if (asStr.includes("function") || asStr.includes("=>")) { | ||
return "Function"; | ||
} | ||
return "Object"; | ||
} | ||
var type_1 = type$1; | ||
function equals$1(a, b) { | ||
if (a === b) { | ||
@@ -273,4 +295,4 @@ | ||
} | ||
var aType = type(a); | ||
if (aType !== type(b)) { | ||
var aType = type_1(a); | ||
if (aType !== type_1(b)) { | ||
return false; | ||
@@ -295,4 +317,4 @@ } | ||
if (flag) { | ||
var aValType = type(a[val]); | ||
var bValType = type(b[val]); | ||
var aValType = type_1(a[val]); | ||
var bValType = type_1(b[val]); | ||
if (aValType === bValType) { | ||
@@ -302,3 +324,3 @@ if (aValType === "Object") { | ||
if (Object.keys(a[val]).length !== 0) { | ||
if (!equals(a[val], b[val])) { | ||
if (!equals$1(a[val], b[val])) { | ||
flag = false; | ||
@@ -310,3 +332,3 @@ } | ||
} | ||
} else if (!equals(a[val], b[val])) { | ||
} else if (!equals$1(a[val], b[val])) { | ||
flag = false; | ||
@@ -327,236 +349,31 @@ } | ||
module.exports = curry(equals); | ||
var equals_1 = curry_1(equals$1); | ||
/***/ }), | ||
/* 8 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function filter(fn, arr) { | ||
function contains$1(val, arr) { | ||
var index = -1; | ||
var resIndex = 0; | ||
var len = arr.length; | ||
var willReturn = []; | ||
while (++index < len) { | ||
var value = arr[index]; | ||
if (fn(value)) { | ||
willReturn[resIndex++] = value; | ||
var flag = false; | ||
while (++index < arr.length && !flag) { | ||
if (equals_1(arr[index], val)) { | ||
flag = true; | ||
} | ||
} | ||
return willReturn; | ||
return flag; | ||
} | ||
module.exports = curry(filter); | ||
var contains_1 = curry_1(contains$1); | ||
/***/ }), | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var toConsumableArray = function (arr) { | ||
if (Array.isArray(arr)) { | ||
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function map(fn, arr) { | ||
var index = -1; | ||
var length = arr.length; | ||
var willReturn = Array(length); | ||
while (++index < length) { | ||
willReturn[index] = fn(arr[index]); | ||
return arr2; | ||
} else { | ||
return Array.from(arr); | ||
} | ||
return willReturn; | ||
} | ||
module.exports = curry(map); | ||
/***/ }), | ||
/* 10 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function merge(obj, newProps) { | ||
return Object.assign({}, obj, newProps); | ||
} | ||
module.exports = curry(merge); | ||
/***/ }), | ||
/* 11 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function addIndex(functor) { | ||
return function (fn) { | ||
var cnt = 0; | ||
var newFn = function newFn() { | ||
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
return fn.apply(null, [].concat(args, [cnt++])); | ||
}; | ||
for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
rest[_key - 1] = arguments[_key]; | ||
} | ||
return functor.apply(null, [newFn].concat(rest)); | ||
}; | ||
} | ||
module.exports = addIndex; | ||
/***/ }), | ||
/* 12 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryThree = __webpack_require__(2); | ||
function adjust(fn, index, arr) { | ||
var clone = arr.concat(); | ||
return clone.map(function (val, key) { | ||
if (key === index) { | ||
return fn(arr[index]); | ||
} | ||
return val; | ||
}); | ||
} | ||
module.exports = curryThree(adjust); | ||
/***/ }), | ||
/* 13 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var filter = __webpack_require__(8); | ||
function all(condition, arr) { | ||
if (arguments.length === 1) { | ||
return function (arrHolder) { | ||
return all(condition, arrHolder); | ||
}; | ||
} | ||
return filter(condition, arr).length === arr.length; | ||
} | ||
module.exports = all; | ||
/***/ }), | ||
/* 14 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var any = __webpack_require__(4); | ||
function allPass(conditions, x) { | ||
if (arguments.length === 1) { | ||
return function (conditions) { | ||
return allPass(conditions, xHolder); | ||
}; | ||
} | ||
return !any(function (condition) { | ||
return !condition(x); | ||
})(conditions); | ||
} | ||
module.exports = allPass; | ||
/***/ }), | ||
/* 15 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function append(val, arr) { | ||
var clone = arr.concat(); | ||
clone.push(val); | ||
return clone; | ||
} | ||
module.exports = curry(append); | ||
/***/ }), | ||
/* 16 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function both(x, y) { | ||
return function (input) { | ||
return x(input) && y(input); | ||
}; | ||
} | ||
module.exports = curry(both); | ||
/***/ }), | ||
/* 17 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
// Taken from https://github.com/getify/Functional-Light-JS/blob/master/ch4.md | ||
var compose = function compose() { | ||
for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) { | ||
fns[_key] = arguments[_key]; | ||
} | ||
return function (result) { | ||
var list = fns.slice(); | ||
while (list.length > 0) { | ||
result = list.pop()(result); | ||
} | ||
return result; | ||
}; | ||
}; | ||
module.exports = compose; | ||
/***/ }), | ||
/* 18 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
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) { | ||
function curry$3(f) { | ||
var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
@@ -570,55 +387,34 @@ | ||
return function (o) { | ||
return o.length >= f.length ? f.apply(undefined, _toConsumableArray(o)) : curry(f, o); | ||
}([].concat(_toConsumableArray(a), p)); | ||
return o.length >= f.length ? f.apply(undefined, toConsumableArray(o)) : curry$3(f, o); | ||
}([].concat(toConsumableArray(a), p)); | ||
}; | ||
} | ||
module.exports = curry; | ||
var curry_1$2 = curry$3; | ||
/***/ }), | ||
/* 19 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var type = __webpack_require__(1); | ||
function defaultTo(defaultArgument, inputArgument) { | ||
function defaultTo$1(defaultArgument, inputArgument) { | ||
if (arguments.length === 1) { | ||
return function (inputArgumentHolder) { | ||
return defaultTo(defaultArgument, inputArgumentHolder); | ||
return defaultTo$1(defaultArgument, inputArgumentHolder); | ||
}; | ||
} | ||
return inputArgument === undefined || !(type(inputArgument) === type(defaultArgument)) ? defaultArgument : inputArgument; | ||
return inputArgument === undefined || !(type_1(inputArgument) === type_1(defaultArgument)) ? defaultArgument : inputArgument; | ||
} | ||
module.exports = defaultTo; | ||
var defaultTo_1 = defaultTo$1; | ||
/***/ }), | ||
/* 20 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function drop$1(dropNumber, a) { | ||
return a.slice(dropNumber); | ||
} | ||
"use strict"; | ||
var drop_1 = curry_1(drop$1); | ||
function dropLast$1(dropNumber, a) { | ||
var curry = __webpack_require__(0); | ||
function dropLast(dropNumber, a) { | ||
return a.slice(0, -dropNumber); | ||
} | ||
module.exports = curry(dropLast); | ||
var dropLast_1 = curry_1(dropLast$1); | ||
/***/ }), | ||
/* 21 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function either(x, y) { | ||
function either$1(x, y) { | ||
return function (input) { | ||
@@ -629,29 +425,11 @@ return x(input) || y(input); | ||
module.exports = curry(either); | ||
var either_1 = curry_1(either$1); | ||
/***/ }), | ||
/* 22 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function find(fn, arr) { | ||
function find$1(fn, arr) { | ||
return arr.find(fn); | ||
} | ||
module.exports = curry(find); | ||
var find_1 = curry_1(find$1); | ||
/***/ }), | ||
/* 23 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function findIndex(fn, arr) { | ||
function findIndex$1(fn, arr) { | ||
var length = arr.length; | ||
@@ -669,12 +447,5 @@ var index = -1; | ||
module.exports = curry(findIndex); | ||
var findIndex_1 = curry_1(findIndex$1); | ||
/***/ }), | ||
/* 24 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function flatten(arr, willReturn) { | ||
function flatten$1(arr, willReturn) { | ||
willReturn = willReturn === undefined ? [] : willReturn; | ||
@@ -684,3 +455,3 @@ | ||
if (Array.isArray(arr[i])) { | ||
flatten(arr[i], willReturn); | ||
flatten$1(arr[i], willReturn); | ||
} else { | ||
@@ -694,27 +465,11 @@ willReturn.push(arr[i]); | ||
module.exports = flatten; | ||
var flatten_1 = flatten$1; | ||
/***/ }), | ||
/* 25 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function has(prop, obj) { | ||
function has$1(prop, obj) { | ||
return obj[prop] !== undefined; | ||
} | ||
module.exports = curry(has); | ||
var has_1 = curry_1(has$1); | ||
/***/ }), | ||
/* 26 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function head(a) { | ||
function head$1(a) { | ||
if (typeof a === "string") { | ||
@@ -727,14 +482,5 @@ return a[0] || ""; | ||
module.exports = head; | ||
var head_1 = head$1; | ||
/***/ }), | ||
/* 27 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryThree = __webpack_require__(2); | ||
function ifElse(conditionFn, ifFn, elseFn) { | ||
function ifElse$1(conditionFn, ifFn, elseFn) { | ||
return function (input) { | ||
@@ -748,14 +494,5 @@ if (conditionFn(input) === true) { | ||
module.exports = curryThree(ifElse); | ||
var ifElse_1 = curryThree_1(ifElse$1); | ||
/***/ }), | ||
/* 28 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function indexOf(question, arr) { | ||
function indexOf$1(question, arr) { | ||
var index = -1; | ||
@@ -773,144 +510,36 @@ var length = arr.length; | ||
module.exports = curry(indexOf); | ||
var indexOf_1 = curry_1(indexOf$1); | ||
/***/ }), | ||
/* 29 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function baseSlice(array, start, end) { | ||
var index = -1; | ||
var length = array.length; | ||
"use strict"; | ||
var baseSlice = __webpack_require__(3); | ||
function init(a) { | ||
if (typeof a === "string") { | ||
return a.slice(0, -1); | ||
end = end > length ? length : end; | ||
if (end < 0) { | ||
end += length; | ||
} | ||
length = start > end ? 0 : end - start >>> 0; | ||
start >>>= 0; | ||
return a.length ? baseSlice(a, 0, -1) : []; | ||
} | ||
module.exports = init; | ||
/***/ }), | ||
/* 30 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function helper(method, x, y) { | ||
if (x === undefined) { | ||
return function (xHolder, yHolder) { | ||
return helper(method, xHolder, yHolder); | ||
}; | ||
} else if (y === undefined) { | ||
return function (yHolder) { | ||
return helper(method, x, yHolder); | ||
}; | ||
var result = Array(length); | ||
while (++index < length) { | ||
result[index] = array[index + start]; | ||
} | ||
if (y[method] !== undefined) { | ||
return y[method](x); | ||
} | ||
} | ||
module.exports = helper; | ||
/***/ }), | ||
/* 31 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryThree = __webpack_require__(2); | ||
function mathHelper(operation, x, y) { | ||
switch (operation) { | ||
case '+': | ||
return x + y; | ||
case '-': | ||
return x - y; | ||
case '/': | ||
return x / y; | ||
case '*': | ||
return x * y; | ||
case '%': | ||
return x % y; | ||
} | ||
return result; | ||
} | ||
module.exports = curryThree(mathHelper); | ||
var baseSlice_1 = baseSlice; | ||
/***/ }), | ||
/* 32 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function oppositeHelper(method, x, y) { | ||
if (x === undefined) { | ||
return function (xHolder, yHolder) { | ||
return oppositeHelper(method, xHolder, yHolder); | ||
}; | ||
} else if (y === undefined) { | ||
return function (yHolder) { | ||
return oppositeHelper(method, x, yHolder); | ||
}; | ||
function init$1(a) { | ||
if (typeof a === "string") { | ||
return a.slice(0, -1); | ||
} | ||
if (x[method] !== undefined) { | ||
return x[method](y); | ||
} | ||
} | ||
module.exports = oppositeHelper; | ||
/***/ }), | ||
/* 33 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function propHelper(method, x) { | ||
if (x === undefined) { | ||
return function (xHolder) { | ||
return propHelper(method, xHolder); | ||
}; | ||
} | ||
return x[method]; | ||
return a.length ? baseSlice_1(a, 0, -1) : []; | ||
} | ||
module.exports = propHelper; | ||
var init_1 = init$1; | ||
/***/ }), | ||
/* 34 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function simpleHelper(method, x) { | ||
if (x === undefined) { | ||
return function (xHolder) { | ||
return simpleHelper(method, xHolder); | ||
}; | ||
} | ||
if (x[method] !== undefined) { | ||
return x[method](); | ||
} | ||
} | ||
module.exports = simpleHelper; | ||
/***/ }), | ||
/* 35 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function last(a) { | ||
function last$1(a) { | ||
if (typeof a === "string") { | ||
@@ -923,14 +552,19 @@ return a[a.length - 1] || ""; | ||
module.exports = last; | ||
var last_1 = last$1; | ||
/***/ }), | ||
/* 36 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function map$1(fn, arr) { | ||
var index = -1; | ||
var length = arr.length; | ||
var willReturn = Array(length); | ||
"use strict"; | ||
while (++index < length) { | ||
willReturn[index] = fn(arr[index]); | ||
} | ||
return willReturn; | ||
} | ||
var curry = __webpack_require__(0); | ||
var map_1 = curry_1(map$1); | ||
function match(regex, str) { | ||
function match$1(regex, str) { | ||
var willReturn = str.match(regex); | ||
@@ -941,23 +575,20 @@ | ||
module.exports = curry(match); | ||
var match_1 = curry_1(match$1); | ||
/***/ }), | ||
/* 37 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function merge$1(obj, newProps) { | ||
return Object.assign({}, obj, newProps); | ||
} | ||
"use strict"; | ||
var merge_1 = curry_1(merge$1); | ||
var type = __webpack_require__(1); | ||
function omit(keys, obj) { | ||
function omit$1(keys, obj) { | ||
if (arguments.length === 1) { | ||
return function (objHolder) { | ||
return omit(keys, objHolder); | ||
return omit$1(keys, objHolder); | ||
}; | ||
} | ||
if (!(type(obj) === 'Object')) { | ||
if (!(type_1(obj) === 'Object')) { | ||
return undefined; | ||
} | ||
if (type(keys) === 'String') { | ||
if (type_1(keys) === 'String') { | ||
keys = keys.split(',').map(function (x) { | ||
@@ -978,45 +609,26 @@ return x.trim(); | ||
module.exports = omit; | ||
var omit_1 = omit$1; | ||
/***/ }), | ||
/* 38 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var type = __webpack_require__(1); | ||
var merge = __webpack_require__(10); | ||
function partialCurry(fn) { | ||
function partialCurry$1(fn) { | ||
var inputArguments = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return function (inputArgumentsHolder) { | ||
if (type(fn) === "Async" || type(fn) === "Promise") { | ||
if (type_1(fn) === "Async" || type_1(fn) === "Promise") { | ||
return new Promise(function (resolve, reject) { | ||
fn(merge(inputArgumentsHolder, inputArguments)).then(resolve).catch(reject); | ||
fn(merge_1(inputArgumentsHolder, inputArguments)).then(resolve).catch(reject); | ||
}); | ||
} | ||
return fn(merge(inputArgumentsHolder, inputArguments)); | ||
return fn(merge_1(inputArgumentsHolder, inputArguments)); | ||
}; | ||
} | ||
module.exports = partialCurry; | ||
var partialCurry_1 = partialCurry$1; | ||
/***/ }), | ||
/* 39 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var type = __webpack_require__(1); | ||
function path(pathArr, obj) { | ||
function path$1(pathArr, obj) { | ||
if (arguments.length === 1) { | ||
return function (objHolder) { | ||
return path(pathArr, objHolder); | ||
return path$1(pathArr, objHolder); | ||
}; | ||
} | ||
if (!(type(obj) === "Object")) { | ||
if (!(type_1(obj) === "Object")) { | ||
return undefined; | ||
@@ -1040,23 +652,14 @@ } | ||
module.exports = path; | ||
var path_1 = path$1; | ||
/***/ }), | ||
/* 40 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var type = __webpack_require__(1); | ||
function pick(keys, obj) { | ||
function pick$1(keys, obj) { | ||
if (arguments.length === 1) { | ||
return function (objHolder) { | ||
return pick(keys, objHolder); | ||
return pick$1(keys, objHolder); | ||
}; | ||
} | ||
if (!(type(obj) === "Object")) { | ||
if (!(type_1(obj) === "Object")) { | ||
return undefined; | ||
} | ||
if (type(keys) === 'String') { | ||
if (type_1(keys) === 'String') { | ||
keys = keys.split(',').map(function (x) { | ||
@@ -1079,17 +682,7 @@ return x.trim(); | ||
module.exports = pick; | ||
var pick_1 = pick$1; | ||
/***/ }), | ||
/* 41 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
var map = __webpack_require__(9); | ||
function pluck(keyToPluck, arr) { | ||
function pluck$1(keyToPluck, arr) { | ||
var willReturn = []; | ||
map(function (val) { | ||
map_1(function (val) { | ||
if (!(val[keyToPluck] === undefined)) { | ||
@@ -1102,14 +695,5 @@ willReturn.push(val[keyToPluck]); | ||
module.exports = curry(pluck); | ||
var pluck_1 = curry_1(pluck$1); | ||
/***/ }), | ||
/* 42 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function prepend(val, arr) { | ||
function prepend$1(val, arr) { | ||
var clone = arr.concat(); | ||
@@ -1121,42 +705,17 @@ clone.unshift(val); | ||
module.exports = curry(prepend); | ||
var prepend_1 = curry_1(prepend$1); | ||
/***/ }), | ||
/* 43 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function prop(key, obj) { | ||
function prop$1(key, obj) { | ||
return obj[key]; | ||
} | ||
module.exports = curry(prop); | ||
var prop_1 = curry_1(prop$1); | ||
/***/ }), | ||
/* 44 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryThree = __webpack_require__(2); | ||
function propEq(key, val, obj) { | ||
function propEq$1(key, val, obj) { | ||
return obj[key] === val; | ||
} | ||
module.exports = curryThree(propEq); | ||
var propEq_1 = curryThree_1(propEq$1); | ||
/***/ }), | ||
/* 45 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function range(start, end) { | ||
function range$1(start, end) { | ||
var willReturn = []; | ||
@@ -1170,29 +729,11 @@ for (var i = start; i < end; i++) { | ||
module.exports = range; | ||
var range_1 = range$1; | ||
/***/ }), | ||
/* 46 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryThree = __webpack_require__(2); | ||
function reduce(fn, initialValue, arr) { | ||
function reduce$1(fn, initialValue, arr) { | ||
return arr.reduce(fn, initialValue); | ||
} | ||
module.exports = curryThree(reduce); | ||
var reduce_1 = curryThree_1(reduce$1); | ||
/***/ }), | ||
/* 47 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function repeat(a, num) { | ||
function repeat$1(a, num) { | ||
var willReturn = Array(num); | ||
@@ -1203,29 +744,11 @@ | ||
module.exports = curry(repeat); | ||
var repeat_1 = curry_1(repeat$1); | ||
/***/ }), | ||
/* 48 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryThree = __webpack_require__(2); | ||
function replace(regex, replacer, str) { | ||
function replace$1(regex, replacer, str) { | ||
return str.replace(regex, replacer); | ||
} | ||
module.exports = curryThree(replace); | ||
var replace_1 = curryThree_1(replace$1); | ||
/***/ }), | ||
/* 49 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function sort(fn, arr) { | ||
function sort$1(fn, arr) { | ||
var arrClone = arr.concat(); | ||
@@ -1236,14 +759,5 @@ | ||
module.exports = curry(sort); | ||
var sort_1 = curry_1(sort$1); | ||
/***/ }), | ||
/* 50 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function sortBy(fn, arr) { | ||
function sortBy$1(fn, arr) { | ||
var arrClone = arr.concat(); | ||
@@ -1258,29 +772,12 @@ | ||
module.exports = curry(sortBy); | ||
var sortBy_1 = curry_1(sortBy$1); | ||
/***/ }), | ||
/* 51 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function split$1(glue, str) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function split(glue, str) { | ||
return str.split(glue); | ||
} | ||
module.exports = curry(split); | ||
var split_1 = curry_1(split$1); | ||
/***/ }), | ||
/* 52 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function splitEvery(num, a) { | ||
function splitEvery$1(num, a) { | ||
num = num > 1 ? num : 1; | ||
@@ -1297,34 +794,23 @@ | ||
module.exports = curry(splitEvery); | ||
var splitEvery_1 = curry_1(splitEvery$1); | ||
/***/ }), | ||
/* 53 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
function tap$1(fn, input) { | ||
fn(input); | ||
"use strict"; | ||
return input; | ||
} | ||
var tap_1 = curry_1(tap$1); | ||
var drop = __webpack_require__(6); | ||
function tail$1(arr) { | ||
function tail(arr) { | ||
return drop(1, arr); | ||
return drop_1(1, arr); | ||
} | ||
module.exports = tail; | ||
var tail_1 = tail$1; | ||
/***/ }), | ||
/* 54 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
var baseSlice = __webpack_require__(3); | ||
function take(takeNumber, a) { | ||
function take$1(takeNumber, a) { | ||
if (a === undefined) { | ||
return function (holder) { | ||
return take(takeNumber, holder); | ||
return take$1(takeNumber, holder); | ||
}; | ||
@@ -1335,18 +821,8 @@ } else if (typeof a === "string") { | ||
return baseSlice(a, 0, takeNumber); | ||
return baseSlice_1(a, 0, takeNumber); | ||
} | ||
module.exports = curry(take); | ||
var take_1 = curry_1(take$1); | ||
/***/ }), | ||
/* 55 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var baseSlice = __webpack_require__(3); | ||
var curry = __webpack_require__(0); | ||
function takeLast(takeNumber, a) { | ||
function takeLast$1(takeNumber, a) { | ||
var len = a.length; | ||
@@ -1360,49 +836,14 @@ takeNumber = takeNumber > len ? len : takeNumber; | ||
return baseSlice(a, takeNumber, len); | ||
return baseSlice_1(a, takeNumber, len); | ||
} | ||
module.exports = curry(takeLast); | ||
var takeLast_1 = curry_1(takeLast$1); | ||
/***/ }), | ||
/* 56 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function tap(fn, input) { | ||
fn(input); | ||
return input; | ||
} | ||
module.exports = curry(tap); | ||
/***/ }), | ||
/* 57 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curry = __webpack_require__(0); | ||
function test(regex, str) { | ||
function test$1(regex, str) { | ||
return str.search(regex) === -1 ? false : true; | ||
} | ||
module.exports = curry(test); | ||
var testFn = curry_1(test$1); | ||
/***/ }), | ||
/* 58 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var contains = __webpack_require__(5); | ||
function uniq(arr) { | ||
function uniq$1(arr) { | ||
var index = -1; | ||
@@ -1412,3 +853,3 @@ var willReturn = []; | ||
var value = arr[index]; | ||
if (!contains(value, willReturn)) { | ||
if (!contains_1(value, willReturn)) { | ||
willReturn.push(value); | ||
@@ -1421,14 +862,5 @@ } | ||
module.exports = uniq; | ||
var uniq_1 = uniq$1; | ||
/***/ }), | ||
/* 59 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
var curryThree = __webpack_require__(2); | ||
function update(index, newValue, arr) { | ||
function update$1(index, newValue, arr) { | ||
var arrClone = arr.concat(); | ||
@@ -1439,12 +871,5 @@ | ||
module.exports = curryThree(update); | ||
var update_1 = curryThree_1(update$1); | ||
/***/ }), | ||
/* 60 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function values(obj) { | ||
function values$1(obj) { | ||
var willReturn = []; | ||
@@ -1458,113 +883,258 @@ for (var key in obj) { | ||
module.exports = values; | ||
var values_1 = values$1; | ||
/***/ }), | ||
/* 61 */ | ||
/***/ (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('+'); | ||
exports.addIndex = __webpack_require__(11); | ||
exports.adjust = __webpack_require__(12); | ||
exports.always = function (x) { | ||
return function () { | ||
return x; | ||
}; | ||
var add = mathHelper_1('+'); | ||
var addIndex = addIndex_1; | ||
var adjust = adjust_1; | ||
var always = function always(x) { | ||
return function () { | ||
return x; | ||
}; | ||
}; | ||
exports.any = __webpack_require__(4); | ||
exports.append = __webpack_require__(15); | ||
exports.all = __webpack_require__(13); | ||
exports.allPass = __webpack_require__(14); | ||
exports.both = __webpack_require__(16); | ||
exports.compose = __webpack_require__(17); | ||
exports.complement = function (fn) { | ||
return function (input) { | ||
return !Boolean(fn(input)); | ||
}; | ||
var any = any_1; | ||
var append = append_1; | ||
var all = all_1; | ||
var allPass = allPass_1; | ||
var both = both_1; | ||
var compose = compose_1; | ||
var complement = function complement(fn) { | ||
return function (input) { | ||
return !Boolean(fn(input)); | ||
}; | ||
}; | ||
exports.concat = oppositeHelper("concat"); | ||
exports.contains = __webpack_require__(5); | ||
exports.curry = __webpack_require__(18); | ||
exports.defaultTo = __webpack_require__(19); | ||
exports.divide = mathHelper('/'); | ||
exports.drop = __webpack_require__(6); | ||
exports.dropLast = __webpack_require__(20); | ||
exports.either = __webpack_require__(21); | ||
exports.endsWith = helper("endsWith"); | ||
exports.equals = __webpack_require__(7); | ||
exports.F = function () { | ||
return false; | ||
var concat = oppositeHelper_1("concat"); | ||
var contains = contains_1; | ||
var curry = curry_1$2; | ||
var defaultTo = defaultTo_1; | ||
var divide = mathHelper_1('/'); | ||
var drop = drop_1; | ||
var dropLast = dropLast_1; | ||
var either = either_1; | ||
var endsWith = helper_1("endsWith"); | ||
var equals = equals_1; | ||
var F = function F() { | ||
return false; | ||
}; | ||
exports.filter = __webpack_require__(8); | ||
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.identity = function (x) { | ||
return x; | ||
var filter = filter_1; | ||
var find = find_1; | ||
var findIndex = findIndex_1; | ||
var flatten = flatten_1; | ||
var has = has_1; | ||
var head = head_1; | ||
var identity = function identity(x) { | ||
return x; | ||
}; | ||
exports.ifElse = __webpack_require__(27); | ||
exports.includes = helper("includes"); | ||
exports.indexOf = __webpack_require__(28); | ||
exports.init = __webpack_require__(29); | ||
exports.join = helper('join'); | ||
exports.last = __webpack_require__(35); | ||
exports.lastIndexOf = helper("lastIndexOf"); | ||
exports.length = propHelper("length"); | ||
exports.map = __webpack_require__(9); | ||
exports.match = __webpack_require__(36); | ||
exports.merge = __webpack_require__(10); | ||
exports.modulo = mathHelper('%'); | ||
exports.multiply = mathHelper('*'); | ||
exports.not = function (x) { | ||
return !x; | ||
var ifElse = ifElse_1; | ||
var includes = helper_1("includes"); | ||
var indexOf = indexOf_1; | ||
var init = init_1; | ||
var join = helper_1('join'); | ||
var last = last_1; | ||
var lastIndexOf = helper_1("lastIndexOf"); | ||
var length = propHelper_1("length"); | ||
var map = map_1; | ||
var match = match_1; | ||
var merge = merge_1; | ||
var modulo = mathHelper_1('%'); | ||
var multiply = mathHelper_1('*'); | ||
var not = function not(x) { | ||
return !x; | ||
}; | ||
exports.omit = __webpack_require__(37); | ||
exports.padEnd = helper('padEnd'); | ||
exports.padStart = helper('padStart'); | ||
exports.partialCurry = __webpack_require__(38); | ||
exports.path = __webpack_require__(39); | ||
exports.pick = __webpack_require__(40); | ||
exports.pluck = __webpack_require__(41); | ||
exports.prepend = __webpack_require__(42); | ||
exports.prop = __webpack_require__(43); | ||
exports.propEq = __webpack_require__(44); | ||
exports.range = __webpack_require__(45); | ||
exports.reduce = __webpack_require__(46); | ||
exports.repeat = __webpack_require__(47); | ||
exports.replace = __webpack_require__(48); | ||
exports.reverse = simpleHelper('reverse'); | ||
exports.sort = __webpack_require__(49); | ||
exports.sortBy = __webpack_require__(50); | ||
exports.split = __webpack_require__(51); | ||
exports.splitEvery = __webpack_require__(52); | ||
exports.startsWith = helper("startsWith"); | ||
exports.subtract = mathHelper('-'); | ||
exports.T = function () { | ||
return true; | ||
var omit = omit_1; | ||
var padEnd = helper_1('padEnd'); | ||
var padStart = helper_1('padStart'); | ||
var partialCurry = partialCurry_1; | ||
var path = path_1; | ||
var pick = pick_1; | ||
var pluck = pluck_1; | ||
var prepend = prepend_1; | ||
var prop = prop_1; | ||
var propEq = propEq_1; | ||
var range = range_1; | ||
var reduce = reduce_1; | ||
var repeat = repeat_1; | ||
var replace = replace_1; | ||
var reverse = simpleHelper_1('reverse'); | ||
var sort = sort_1; | ||
var sortBy = sortBy_1; | ||
var split = split_1; | ||
var splitEvery = splitEvery_1; | ||
var startsWith = helper_1("startsWith"); | ||
var subtract = mathHelper_1('-'); | ||
var T = function T() { | ||
return true; | ||
}; | ||
exports.tap = __webpack_require__(56); | ||
exports.tail = __webpack_require__(53); | ||
exports.take = __webpack_require__(54); | ||
exports.takeLast = __webpack_require__(55); | ||
exports.test = __webpack_require__(57); | ||
exports.toLower = simpleHelper("toLowerCase"); | ||
exports.toString = simpleHelper('toString'); | ||
exports.toUpper = simpleHelper("toUpperCase"); | ||
exports.trim = simpleHelper("trim"); | ||
exports.type = __webpack_require__(1); | ||
exports.uniq = __webpack_require__(58); | ||
exports.update = __webpack_require__(59); | ||
exports.values = __webpack_require__(60); | ||
var tap = tap_1; | ||
var tail = tail_1; | ||
var take = take_1; | ||
var takeLast = takeLast_1; | ||
var test = testFn; | ||
var toLower = simpleHelper_1("toLowerCase"); | ||
var toString_1 = simpleHelper_1('toString'); | ||
var toUpper = simpleHelper_1("toUpperCase"); | ||
var trim = simpleHelper_1("trim"); | ||
var type = type_1; | ||
var uniq = uniq_1; | ||
var update = update_1; | ||
var values = values_1; | ||
/***/ }) | ||
/******/ ]); | ||
var rambda = { | ||
add: add, | ||
addIndex: addIndex, | ||
adjust: adjust, | ||
always: always, | ||
any: any, | ||
append: append, | ||
all: all, | ||
allPass: allPass, | ||
both: both, | ||
compose: compose, | ||
complement: complement, | ||
concat: concat, | ||
contains: contains, | ||
curry: curry, | ||
defaultTo: defaultTo, | ||
divide: divide, | ||
drop: drop, | ||
dropLast: dropLast, | ||
either: either, | ||
endsWith: endsWith, | ||
equals: equals, | ||
F: F, | ||
filter: filter, | ||
find: find, | ||
findIndex: findIndex, | ||
flatten: flatten, | ||
has: has, | ||
head: head, | ||
identity: identity, | ||
ifElse: ifElse, | ||
includes: includes, | ||
indexOf: indexOf, | ||
init: init, | ||
join: join, | ||
last: last, | ||
lastIndexOf: lastIndexOf, | ||
length: length, | ||
map: map, | ||
match: match, | ||
merge: merge, | ||
modulo: modulo, | ||
multiply: multiply, | ||
not: not, | ||
omit: omit, | ||
padEnd: padEnd, | ||
padStart: padStart, | ||
partialCurry: partialCurry, | ||
path: path, | ||
pick: pick, | ||
pluck: pluck, | ||
prepend: prepend, | ||
prop: prop, | ||
propEq: propEq, | ||
range: range, | ||
reduce: reduce, | ||
repeat: repeat, | ||
replace: replace, | ||
reverse: reverse, | ||
sort: sort, | ||
sortBy: sortBy, | ||
split: split, | ||
splitEvery: splitEvery, | ||
startsWith: startsWith, | ||
subtract: subtract, | ||
T: T, | ||
tap: tap, | ||
tail: tail, | ||
take: take, | ||
takeLast: takeLast, | ||
test: test, | ||
toLower: toLower, | ||
toString: toString_1, | ||
toUpper: toUpper, | ||
trim: trim, | ||
type: type, | ||
uniq: uniq, | ||
update: update, | ||
values: values | ||
}; | ||
exports['default'] = rambda; | ||
exports.add = add; | ||
exports.addIndex = addIndex; | ||
exports.adjust = adjust; | ||
exports.always = always; | ||
exports.any = any; | ||
exports.append = append; | ||
exports.all = all; | ||
exports.allPass = allPass; | ||
exports.both = both; | ||
exports.compose = compose; | ||
exports.complement = complement; | ||
exports.concat = concat; | ||
exports.contains = contains; | ||
exports.curry = curry; | ||
exports.defaultTo = defaultTo; | ||
exports.divide = divide; | ||
exports.drop = drop; | ||
exports.dropLast = dropLast; | ||
exports.either = either; | ||
exports.endsWith = endsWith; | ||
exports.equals = equals; | ||
exports.F = F; | ||
exports.filter = filter; | ||
exports.find = find; | ||
exports.findIndex = findIndex; | ||
exports.flatten = flatten; | ||
exports.has = has; | ||
exports.head = head; | ||
exports.identity = identity; | ||
exports.ifElse = ifElse; | ||
exports.includes = includes; | ||
exports.indexOf = indexOf; | ||
exports.init = init; | ||
exports.join = join; | ||
exports.last = last; | ||
exports.lastIndexOf = lastIndexOf; | ||
exports.length = length; | ||
exports.map = map; | ||
exports.match = match; | ||
exports.merge = merge; | ||
exports.modulo = modulo; | ||
exports.multiply = multiply; | ||
exports.not = not; | ||
exports.omit = omit; | ||
exports.padEnd = padEnd; | ||
exports.padStart = padStart; | ||
exports.partialCurry = partialCurry; | ||
exports.path = path; | ||
exports.pick = pick; | ||
exports.pluck = pluck; | ||
exports.prepend = prepend; | ||
exports.prop = prop; | ||
exports.propEq = propEq; | ||
exports.range = range; | ||
exports.reduce = reduce; | ||
exports.repeat = repeat; | ||
exports.replace = replace; | ||
exports.reverse = reverse; | ||
exports.sort = sort; | ||
exports.sortBy = sortBy; | ||
exports.split = split; | ||
exports.splitEvery = splitEvery; | ||
exports.startsWith = startsWith; | ||
exports.subtract = subtract; | ||
exports.T = T; | ||
exports.tap = tap; | ||
exports.tail = tail; | ||
exports.take = take; | ||
exports.takeLast = takeLast; | ||
exports.test = test; | ||
exports.toLower = toLower; | ||
exports.toString = toString_1; | ||
exports.toUpper = toUpper; | ||
exports.trim = trim; | ||
exports.type = type; | ||
exports.uniq = uniq; | ||
exports.update = update; | ||
exports.values = values; |
{ | ||
"name": "rambda", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"description": "Lightweight alternative to Ramda", | ||
"main": "index.js", | ||
"module": "index.esm.js", | ||
"browser": "webVersion.js", | ||
"scripts": { | ||
"build": "run-s browser-build browser-minify node-build", | ||
"build": "run-s all-build browser-minify", | ||
"test": "jest", | ||
@@ -12,4 +14,3 @@ "docs": "docsify init ./docs", | ||
"dev": "jest __tests__/tap", | ||
"node-build": "webpack --config files/webpack.config.node.js", | ||
"browser-build": "webpack --config files/webpack.config.js", | ||
"all-build": "rollup -c files/rollup.config.js", | ||
"browser-minify": "run m minify f webVersion.js o _", | ||
@@ -37,4 +38,4 @@ "node-minify": "run m minify f index.js o _", | ||
"devDependencies": { | ||
"babel-core": "^6.25.0", | ||
"babel-loader": "^7.1.1", | ||
"babel-core": "^6.26.0", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
@@ -48,5 +49,7 @@ "beautify-benchmark": "^0.2.4", | ||
"ramda": "^0.24.0", | ||
"run-fn": "^0.1.5", | ||
"webpack": "^2.6.1" | ||
"rollup": "^0.48.2", | ||
"rollup-plugin-babel": "^3.0.2", | ||
"rollup-plugin-commonjs": "^8.2.0", | ||
"run-fn": "^0.1.5" | ||
} | ||
} |
269
README.md
[![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda) | ||
[![codecov](https://codecov.io/gh/selfrefactor/rambda/branch/master/graph/badge.svg)](https://codecov.io/gh/selfrefactor/rambda) | ||
[![dependencies Status](https://david-dm.org/selfrefactor/rambda/status.svg)](https://david-dm.org/selfrefactor/rambda) | ||
@@ -33,3 +34,3 @@ # Rambda | ||
``` | ||
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.5/webVersion.js | ||
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.7/webVersion.js | ||
``` | ||
@@ -56,5 +57,5 @@ | ||
- Rambda's **defaultTo** approve incoming argument only if it has the same type as the default argument. | ||
- Rambda's **reverse** modifies the array, instead of returning reversed copy of it. | ||
- Rambda's **partialCurry** is not part of Ramda API. | ||
@@ -102,3 +103,3 @@ | ||
It returns `true` if all members of array `arr` returns `true`, when applied as argument to function `fn`. | ||
It returns `true` if all members of array `arr` returns `true`, when applied as argument to function `fn`. | ||
@@ -288,3 +289,3 @@ ``` | ||
"foo-bar" | ||
) // => true | ||
) // => true | ||
@@ -466,7 +467,7 @@ R.endsWith( | ||
> lastIndexOf(x: any, arr: Array): Number | ||
> lastIndexOf(x: any, arr: Array): Number | ||
``` | ||
R.lastIndexOf(1, [1, 2, 3, 1, 2]) // => 3 | ||
R.lastIndexOf(10, [1, 2, 3, 1, 2]) // => -1 | ||
R.lastIndexOf(1, [1, 2, 3, 1, 2]) // => 3 | ||
R.lastIndexOf(10, [1, 2, 3, 1, 2]) // => -1 | ||
``` | ||
@@ -694,3 +695,3 @@ | ||
const arr = [1, 2] | ||
R.reverse(arr) | ||
R.reverse(arr) | ||
console.log(arr) // => [2, 1] | ||
@@ -756,3 +757,3 @@ ``` | ||
"foo-bar" | ||
) // => true | ||
) // => true | ||
@@ -952,2 +953,3 @@ R.endsWith( | ||
- 0.8.7 Change `Webpack` with `Rollup` - [PR29](https://github.com/selfrefactor/rambda/pull/29) | ||
- 0.8.6 Add `R.tap` and `R.identity` | ||
@@ -969,2 +971,249 @@ - 0.8.5 Add `R.all`, `R.allPass`, `R.both`, `R.either` and `R.complement` | ||
## Browse by category | ||
### Function | ||
[addIndex](#addindex) | ||
[always](#always) | ||
[compose](#compose) | ||
[curry](#curry) | ||
[F](#f) | ||
[identity](#identity) | ||
[T](#t) | ||
[tap](#tap) | ||
### Math | ||
[add](#add) | ||
[divide](#divide) | ||
[modulo](#modulo) | ||
[multiply](#multiply) | ||
[subtract](#subtract) | ||
### List | ||
[adjust](#adjust) | ||
[all](#all) | ||
[any](#any) | ||
[append](#append) | ||
[concat](#concat) | ||
[contains](#contains) | ||
[drop](#drop) | ||
[dropLast](#droplast) | ||
[endsWith](#endswith) | ||
[filter](#filter) | ||
[find](#find) | ||
[findIndex](#findindex) | ||
[flatten](#flatten) | ||
[head](#head) | ||
[indexOf](#indexof) | ||
[init](#init) | ||
[join](#join) | ||
[last](#last) | ||
[lastIndexOf](#lastindexof) | ||
[length](#length) | ||
[map](#map) | ||
[pluck](#pluck) | ||
[prepend](#prepend) | ||
[range](#range) | ||
[reduce](#reduce) | ||
[repeat](#repeat) | ||
[reverse](#reverse) | ||
[sort](#sort) | ||
[splitEvery](#splitevery) | ||
[startsWith](#startswith) | ||
[tail](#tail) | ||
[take](#take) | ||
[takeLast](#takelast) | ||
[uniq](#uniq) | ||
[update](#update) | ||
### Logic | ||
[allPass](#allpass) | ||
[both](#both) | ||
[complement](#complement) | ||
[defaultTo](#defaultto) | ||
[either](#either) | ||
[ifElse](#ifelse) | ||
[not](#not) | ||
### Object | ||
[has](#has) | ||
[merge](#merge) | ||
[omit](#omit) | ||
[path](#path) | ||
[pick](#pick) | ||
[prop](#prop) | ||
[values](#values) | ||
### Relation | ||
[equals](#equals) | ||
[propEq](#propeq) | ||
[sortBy](#sortby) | ||
### String | ||
[match](#match) | ||
[replace](#replace) | ||
[split](#split) | ||
[test](#test) | ||
[toLower](#tolower) | ||
[toString](#tostring) | ||
[toUpper](#toupper) | ||
[trim](#trim) | ||
## Contribution guidelines | ||
@@ -971,0 +1220,0 @@ |
@@ -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=12);}([function(u,v){function curry(w){return(x,y)=>{if(y===void 0){return A=>w(x,A);}return w(x,y);};}u.exports=curry;},function(B,C,D){const E=D(0);function curryThree(F){return(x,y,z)=>{if(y===void 0){const helper=(G,H)=>{return F(x,G,H);};return E(helper);}else if(z===void 0){return I=>F(x,y,I);}return F(x,y,z);};}B.exports=curryThree;},function(J,K){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 L=a.toString();if(L.startsWith("async")){return"Async";}else if(L==="[object Promise]"){return"Promise";}else if(L.includes("function")||L.includes("=>")){return"Function";}return"Object";}J.exports=type;},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(0);function any(Y,Z){let a1=0;while(a1<Z.length){if(Y(Z[a1])){return!0;}a1++;}return!1;}U.exports=X(any);},function(b1,c1,d1){const e1=d1(7),f1=d1(0);function contains(g1,h1){let i1=-1,j1=!1;while(++i1<h1.length&&!j1){if(e1(h1[i1],g1)){j1=!0;}}return j1;}b1.exports=f1(contains);},function(k1,l1,m1){const n1=m1(0);function drop(o1,a){return a.slice(o1);}k1.exports=n1(drop);},function(p1,q1,r1){const s1=r1(0),t1=r1(2);function equals(a,b){if(a===b){return!0;}const u1=t1(a);if(u1!==t1(b)){return!1;}if(u1==="Array"){const v1=Array.from(a),w1=Array.from(b);return v1.sort().toString()===w1.sort().toString();}if(u1==="Object"){const x1=Object.keys(a);if(x1.length===Object.keys(b).length){if(x1.length===0){return!0;}let y1=!0;x1.map(z1=>{if(y1){const A1=t1(a[z1]),B1=t1(b[z1]);if(A1===B1){if(A1==="Object"){if(Object.keys(a[z1]).length===Object.keys(b[z1]).length){if(Object.keys(a[z1]).length!==0){if(!equals(a[z1],b[z1])){y1=!1;}}}else{y1=!1;}}else if(!equals(a[z1],b[z1])){y1=!1;}}else{y1=!1;}}});return y1;}}return!1;}p1.exports=s1(equals);},function(C1,D1,E1){const F1=E1(0);function filter(fn,H1){let I1=-1,J1=0;const K1=H1.length,L1=[];while(++I1<K1){const M1=H1[I1];if(fn(M1)){L1[J1++]=M1;}}return L1;}C1.exports=F1(filter);},function(N1,O1,P1){const Q1=P1(0);function map(fn,S1){let T1=-1;const U1=S1.length,V1=Array(U1);while(++T1<U1){V1[T1]=fn(S1[T1]);}return V1;}N1.exports=Q1(map);},function(W1,X1,Y1){const Z1=Y1(0);function merge(a2,b2){return Object.assign({},a2,b2);}W1.exports=Z1(merge);},function(c2,d2,e2){const f2=e2(32),g2=e2(33),h2=e2(34),i2=e2(35),j2=e2(36);d2.add=g2('+');d2.addIndex=e2(13);d2.adjust=e2(14);d2.always=x=>()=>x;d2.any=e2(4);d2.append=e2(17);d2.all=e2(15);d2.allPass=e2(16);d2.both=e2(18);d2.compose=e2(19);d2.complement=fn=>l2=>!Boolean(fn(l2));d2.concat=h2("concat");d2.contains=e2(5);d2.curry=e2(20);d2.defaultTo=e2(21);d2.divide=g2('/');d2.drop=e2(6);d2.dropLast=e2(22);d2.either=e2(23);d2.endsWith=f2("endsWith");d2.equals=e2(7);d2.F=()=>!1;d2.filter=e2(8);d2.find=e2(24);d2.findIndex=e2(25);d2.flatten=e2(26);d2.has=e2(27);d2.head=e2(28);d2.identity=x=>x;d2.ifElse=e2(29);d2.includes=f2("includes");d2.indexOf=e2(30);d2.init=e2(31);d2.join=f2('join');d2.last=e2(37);d2.lastIndexOf=f2("lastIndexOf");d2.length=i2("length");d2.map=e2(9);d2.match=e2(38);d2.merge=e2(10);d2.modulo=g2('%');d2.multiply=g2('*');d2.not=x=>!x;d2.omit=e2(39);d2.padEnd=f2('padEnd');d2.padStart=f2('padStart');d2.partialCurry=e2(40);d2.path=e2(41);d2.pick=e2(42);d2.pluck=e2(43);d2.prepend=e2(44);d2.prop=e2(45);d2.propEq=e2(46);d2.range=e2(47);d2.reduce=e2(48);d2.repeat=e2(49);d2.replace=e2(50);d2.reverse=j2('reverse');d2.sort=e2(51);d2.sortBy=e2(52);d2.split=e2(53);d2.splitEvery=e2(54);d2.startsWith=f2("startsWith");d2.subtract=g2('-');d2.T=()=>!0;d2.tap=e2(58);d2.tail=e2(55);d2.take=e2(56);d2.takeLast=e2(57);d2.test=e2(59);d2.toLower=j2("toLowerCase");d2.toString=j2('toString');d2.toUpper=j2("toUpperCase");d2.trim=j2("trim");d2.type=e2(2);d2.uniq=e2(60);d2.update=e2(61);d2.values=e2(62);},function(m2,n2,o2){const p2=o2(11);m2.exports.R=p2;},function(q2,r2){function addIndex(s2){return function(fn,...rest){let u2=0;const newFn=(...args)=>fn.apply(null,[...args,u2++]);return s2.apply(null,[newFn,...rest]);};}q2.exports=addIndex;},function(v2,w2,x2){const y2=x2(1);function adjust(fn,A2,B2){const C2=B2.concat();return C2.map((D2,E2)=>{if(E2===A2){return fn(B2[A2]);}return D2;});}v2.exports=y2(adjust);},function(F2,G2,H2){const I2=H2(8);function all(J2,K2){if(arguments.length===1){return L2=>all(J2,L2);}return I2(J2,K2).length===K2.length;}F2.exports=all;},function(M2,N2,O2){const P2=O2(4);function allPass(Q2,x){if(arguments.length===1){return R2=>allPass(R2,xHolder);}return!P2(S2=>!S2(x))(Q2);}M2.exports=allPass;},function(T2,U2,V2){const W2=V2(0);function append(X2,Y2){const Z2=Y2.concat();Z2.push(X2);return Z2;}T2.exports=W2(append);},function(a3,b3,c3){const d3=c3(0);function both(x,y){return e3=>x(e3)&&y(e3);}a3.exports=d3(both);},function(f3,g3){const compose=(...fns)=>h3=>{let i3=fns.slice();while(i3.length>0){h3=i3.pop()(h3);}return h3;};f3.exports=compose;},function(j3,k3){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}j3.exports=curry;},function(l3,m3,n3){const o3=n3(2);function defaultTo(p3,q3){if(arguments.length===1){return r3=>defaultTo(p3,r3);}return q3===void 0||!(o3(q3)===o3(p3))?p3:q3;}l3.exports=defaultTo;},function(s3,t3,u3){const v3=u3(0);function dropLast(w3,a){return a.slice(0,-w3);}s3.exports=v3(dropLast);},function(x3,y3,z3){const A3=z3(0);function either(x,y){return B3=>x(B3)||y(B3);}x3.exports=A3(either);},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(a4,b4){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}a4.exports=head;},function(c4,d4,e4){const f4=e4(1);function ifElse(g4,h4,i4){return j4=>{if(g4(j4)===!0){return h4(j4);}return i4(j4);};}c4.exports=f4(ifElse);},function(k4,l4,m4){const n4=m4(0);function indexOf(o4,p4){let q4=-1;const r4=p4.length;while(++q4<r4){if(p4[q4]===o4){return q4;}}return-1;}k4.exports=n4(indexOf);},function(s4,t4,u4){const v4=u4(3);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?v4(a,0,-1):[];}s4.exports=init;},function(w4,x4){function helper(y4,x,y){if(x===void 0){return(z4,A4)=>helper(y4,z4,A4);}else if(y===void 0){return B4=>helper(y4,x,B4);}if(y[y4]!==void 0){return y[y4](x);}}w4.exports=helper;},function(C4,D4,E4){const F4=E4(1);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 a5=Z4(0);function match(b5,c5){const d5=c5.match(b5);return d5===null?[]:d5;}X4.exports=a5(match);},function(e5,f5,g5){const h5=g5(2);function omit(i5,j5){if(arguments.length===1){return k5=>omit(i5,k5);}if(!(h5(j5)==='Object')){return void 0;}if(h5(i5)==='String'){i5=i5.split(',').map(x=>x.trim());}const l5={};for(const m5 in j5){if(!i5.includes(m5)){l5[m5]=j5[m5];}}return l5;}e5.exports=omit;},function(n5,o5,p5){const q5=p5(2),r5=p5(10);function partialCurry(fn,t5={}){return u5=>{if(q5(fn)==="Async"||q5(fn)==="Promise"){return new Promise((v5,w5)=>{fn(r5(u5,t5)).then(v5).catch(w5);});}return fn(r5(u5,t5));};}n5.exports=partialCurry;},function(x5,y5,z5){const A5=z5(2);function path(B5,C5){if(arguments.length===1){return D5=>path(B5,D5);}if(!(A5(C5)==="Object")){return void 0;}let E5=C5,F5=0;if(typeof B5==="string"){B5=B5.split(".");}while(F5<B5.length){if(E5===null||E5===void 0){return void 0;}E5=E5[B5[F5]];F5++;}return E5;}x5.exports=path;},function(G5,H5,I5){const J5=I5(2);function pick(K5,L5){if(arguments.length===1){return M5=>pick(K5,M5);}if(!(J5(L5)==="Object")){return void 0;}if(J5(K5)==='String'){K5=K5.split(',').map(x=>x.trim());}const N5={};let O5=0;while(O5<K5.length){if(K5[O5]in L5){N5[K5[O5]]=L5[K5[O5]];}O5++;}return N5;}G5.exports=pick;},function(P5,Q5,R5){const S5=R5(0),T5=R5(9);function pluck(U5,V5){const W5=[];T5(X5=>{if(!(X5[U5]===void 0)){W5.push(X5[U5]);}},V5);return W5;}P5.exports=S5(pluck);},function(Y5,Z5,a6){const b6=a6(0);function prepend(c6,d6){const e6=d6.concat();e6.unshift(c6);return e6;}Y5.exports=b6(prepend);},function(f6,g6,h6){const i6=h6(0);function prop(j6,k6){return k6[j6];}f6.exports=i6(prop);},function(l6,m6,n6){const o6=n6(1);function propEq(p6,q6,r6){return r6[p6]===q6;}l6.exports=o6(propEq);},function(s6,t6){function range(u6,v6){const w6=[];for(let i=u6;i<v6;i++){w6.push(i);}return w6;}s6.exports=range;},function(x6,y6,z6){const A6=z6(1);function reduce(fn,C6,D6){return D6.reduce(fn,C6);}x6.exports=A6(reduce);},function(E6,F6,G6){const H6=G6(0);function repeat(a,I6){const J6=Array(I6);return J6.fill(a);}E6.exports=H6(repeat);},function(K6,L6,M6){const N6=M6(1);function replace(O6,P6,Q6){return Q6.replace(O6,P6);}K6.exports=N6(replace);},function(R6,S6,T6){const U6=T6(0);function sort(fn,W6){const X6=W6.concat();return X6.sort(fn);}R6.exports=U6(sort);},function(Y6,Z6,a7){const b7=a7(0);function sortBy(fn,d7){const e7=d7.concat();return e7.sort((a,b)=>{const f7=fn(a),g7=fn(b);return f7<g7?-1:f7>g7?1:0;});}Y6.exports=b7(sortBy);},function(h7,i7,j7){const k7=j7(0);function split(l7,m7){return m7.split(l7);}h7.exports=k7(split);},function(n7,o7,p7){const q7=p7(0);function splitEvery(r7,a){r7=r7>1?r7:1;const s7=[];let t7=0;while(t7<a.length){s7.push(a.slice(t7,t7+=r7));}return s7;}n7.exports=q7(splitEvery);},function(u7,v7,w7){const x7=w7(6);function tail(y7){return x7(1,y7);}u7.exports=tail;},function(z7,A7,B7){const C7=B7(0),D7=B7(3);function take(E7,a){if(a===void 0){return F7=>take(E7,F7);}else if(typeof a==="string"){return a.slice(0,E7);}return D7(a,0,E7);}z7.exports=C7(take);},function(G7,H7,I7){const J7=I7(3),K7=I7(0);function takeLast(L7,a){const M7=a.length;L7=L7>M7?M7:L7;if(typeof a==="string"){return a.slice(M7-L7);}L7=M7-L7;return J7(a,L7,M7);}G7.exports=K7(takeLast);},function(N7,O7,P7){const Q7=P7(0);function tap(fn,S7){fn(S7);return S7;}N7.exports=Q7(tap);},function(T7,U7,V7){const W7=V7(0);function test(X7,Y7){return Y7.search(X7)===-1?!1:!0;}T7.exports=W7(test);},function(Z7,a8,b8){const c8=b8(5);function uniq(d8){let e8=-1;const f8=[];while(++e8<d8.length){const g8=d8[e8];if(!c8(g8,f8)){f8.push(g8);}}return f8;}Z7.exports=uniq;},function(h8,i8,j8){const k8=j8(1);function update(l8,m8,n8){const o8=n8.concat();return o8.fill(m8,l8,l8+1);}h8.exports=k8(update);},function(p8,q8){function values(r8){const s8=[];for(const t8 in r8){s8.push(r8[t8]);}return s8;}p8.exports=values;}]);}); | ||
(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function helper(g,x,y){if(x===void 0){return function(h,j){return helper(g,h,j);};}else if(y===void 0){return function(k){return helper(g,x,k);};}if(y[g]!==void 0){return y[g](x);}}var l=helper;function curry$1(m){return function(x,y){if(y===void 0){return function(n){return m(x,n);};}return m(x,y);};}var q=curry$1;function curryThree(r){return function(x,y,z){if(y===void 0){var helper=function helper(s,t){return r(x,s,t);};return q(helper);}else if(z===void 0){return function(u){return r(x,y,u);};}return r(x,y,z);};}var v=curryThree;function mathHelper(w,x,y){switch(w){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}var A=v(mathHelper);function oppositeHelper(B,x,y){if(x===void 0){return function(C,D){return oppositeHelper(B,C,D);};}else if(y===void 0){return function(E){return oppositeHelper(B,x,E);};}if(x[B]!==void 0){return x[B](y);}}var G=oppositeHelper;function propHelper(H,x){if(x===void 0){return function(I){return propHelper(H,I);};}return x[H];}var J=propHelper;function simpleHelper(K,x){if(x===void 0){return function(L){return simpleHelper(K,L);};}if(x[K]!==void 0){return x[K]();}}var M=simpleHelper;function addIndex$1(N){return function(O){for(var P=0,newFn=function newFn(){for(var Q=arguments.length,R=Array(Q),S=0;S<Q;S++){R[S]=arguments[S];}return O.apply(null,[].concat(R,[P++]));},U=arguments.length,V=Array(U>1?U-1:0),W=1;W<U;W++){V[W-1]=arguments[W];}return N.apply(null,[newFn].concat(V));};}var X=addIndex$1;function adjust$1(Y,Z,a1){var b1=a1.concat();return b1.map(function(c1,d1){if(d1===Z){return Y(a1[Z]);}return c1;});}var e1=v(adjust$1);function any$1(fn,g1){var h1=0;while(h1<g1.length){if(fn(g1[h1])){return!0;}h1++;}return!1;}var i1=q(any$1);function append$1(j1,k1){var l1=k1.concat();l1.push(j1);return l1;}var m1=q(append$1);function filter$1(fn,o1){var p1=-1,q1=0,r1=o1.length,s1=[];while(++p1<r1){var t1=o1[p1];if(fn(t1)){s1[q1++]=t1;}}return s1;}var u1=q(filter$1);function all$1(v1,w1){if(arguments.length===1){return function(x1){return all$1(v1,x1);};}return u1(v1,w1).length===w1.length;}var y1=all$1;function allPass$1(z1,x){if(arguments.length===1){return function(A1){return allPass$1(A1,xHolder);};}return!i1(function(B1){return!B1(x);})(z1);}var C1=allPass$1;function both$1(x,y){return function(D1){return x(D1)&&y(D1);};}var E1=q(both$1);function createCommonjsModule(fn,G1){return G1={exports:{}},fn(G1,G1.exports),G1.exports;}var H1=createCommonjsModule(function(I1){var compose=function compose(){for(var J1=arguments.length,K1=Array(J1),L1=0;L1<J1;L1++){K1[L1]=arguments[L1];}return function(M1){var N1=K1.slice();while(N1.length>0){M1=N1.pop()(M1);}return M1;};};I1.exports=compose;});function type$1(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 O1=a.toString();if(O1.startsWith("async")){return"Async";}else if(O1==="[object Promise]"){return"Promise";}else if(O1.includes("function")||O1.includes("=>")){return"Function";}return"Object";}var P1=type$1;function equals$1(a,b){if(a===b){return!0;}var Q1=P1(a);if(Q1!==P1(b)){return!1;}if(Q1==="Array"){var R1=Array.from(a),S1=Array.from(b);return R1.sort().toString()===S1.sort().toString();}if(Q1==="Object"){var T1=Object.keys(a);if(T1.length===Object.keys(b).length){if(T1.length===0){return!0;}var U1=!0;T1.map(function(V1){if(U1){var W1=P1(a[V1]),X1=P1(b[V1]);if(W1===X1){if(W1==="Object"){if(Object.keys(a[V1]).length===Object.keys(b[V1]).length){if(Object.keys(a[V1]).length!==0){if(!equals$1(a[V1],b[V1])){U1=!1;}}}else{U1=!1;}}else if(!equals$1(a[V1],b[V1])){U1=!1;}}else{U1=!1;}}});return U1;}}return!1;}var Y1=q(equals$1);function contains$1(Z1,a2){var b2=-1,c2=!1;while(++b2<a2.length&&!c2){if(Y1(a2[b2],Z1)){c2=!0;}}return c2;}var d2=q(contains$1),toConsumableArray=function(e2){if(Array.isArray(e2)){for(var i=0,f2=Array(e2.length);i<e2.length;i++)f2[i]=e2[i];return f2;}else{return Array.from(e2);}};function curry$3(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var g2=arguments.length,p=Array(g2),h2=0;h2<g2;h2++){p[h2]=arguments[h2];}return function(o){return o.length>=f.length?f.apply(void 0,toConsumableArray(o)):curry$3(f,o);}([].concat(toConsumableArray(a),p));};}var i2=curry$3;function defaultTo$1(j2,k2){if(arguments.length===1){return function(l2){return defaultTo$1(j2,l2);};}return k2===void 0||!(P1(k2)===P1(j2))?j2:k2;}var m2=defaultTo$1;function drop$1(n2,a){return a.slice(n2);}var o2=q(drop$1);function dropLast$1(p2,a){return a.slice(0,-p2);}var q2=q(dropLast$1);function either$1(x,y){return function(r2){return x(r2)||y(r2);};}var s2=q(either$1);function find$1(fn,u2){return u2.find(fn);}var v2=q(find$1);function findIndex$1(fn,x2){var y2=x2.length,z2=-1;while(++z2<y2){if(fn(x2[z2])){return z2;}}return-1;}var A2=q(findIndex$1);function flatten$1(B2,C2){C2=C2===void 0?[]:C2;for(var i=0;i<B2.length;i++){if(Array.isArray(B2[i])){flatten$1(B2[i],C2);}else{C2.push(B2[i]);}}return C2;}var D2=flatten$1;function has$1(E2,F2){return F2[E2]!==void 0;}var G2=q(has$1);function head$1(a){if(typeof a==="string"){return a[0]||"";}return a[0];}var H2=head$1;function ifElse$1(I2,J2,K2){return function(L2){if(I2(L2)===!0){return J2(L2);}return K2(L2);};}var M2=v(ifElse$1);function indexOf$1(N2,O2){var P2=-1,Q2=O2.length;while(++P2<Q2){if(O2[P2]===N2){return P2;}}return-1;}var R2=q(indexOf$1);function baseSlice(S2,T2,U2){var V2=-1,W2=S2.length;U2=U2>W2?W2:U2;if(U2<0){U2+=W2;}W2=T2>U2?0:U2-T2>>>0;T2>>>=0;var X2=Array(W2);while(++V2<W2){X2[V2]=S2[V2+T2];}return X2;}var Y2=baseSlice;function init$1(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?Y2(a,0,-1):[];}var Z2=init$1;function last$1(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}var a3=last$1;function map$1(fn,c3){var d3=-1,e3=c3.length,f3=Array(e3);while(++d3<e3){f3[d3]=fn(c3[d3]);}return f3;}var g3=q(map$1);function match$1(h3,i3){var j3=i3.match(h3);return j3===null?[]:j3;}var k3=q(match$1);function merge$1(l3,m3){return Object.assign({},l3,m3);}var n3=q(merge$1);function omit$1(o3,p3){if(arguments.length===1){return function(q3){return omit$1(o3,q3);};}if(!(P1(p3)==='Object')){return void 0;}if(P1(o3)==='String'){o3=o3.split(',').map(function(x){return x.trim();});}var r3={};for(var s3 in p3){if(!o3.includes(s3)){r3[s3]=p3[s3];}}return r3;}var t3=omit$1;function partialCurry$1(fn){var v3=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(w3){if(P1(fn)==="Async"||P1(fn)==="Promise"){return new Promise(function(x3,y3){fn(n3(w3,v3)).then(x3).catch(y3);});}return fn(n3(w3,v3));};}var z3=partialCurry$1;function path$1(A3,B3){if(arguments.length===1){return function(C3){return path$1(A3,C3);};}if(!(P1(B3)==="Object")){return void 0;}var D3=B3,E3=0;if(typeof A3==="string"){A3=A3.split(".");}while(E3<A3.length){if(D3===null||D3===void 0){return void 0;}D3=D3[A3[E3]];E3++;}return D3;}var F3=path$1;function pick$1(G3,H3){if(arguments.length===1){return function(I3){return pick$1(G3,I3);};}if(!(P1(H3)==="Object")){return void 0;}if(P1(G3)==='String'){G3=G3.split(',').map(function(x){return x.trim();});}var J3={},K3=0;while(K3<G3.length){if(G3[K3]in H3){J3[G3[K3]]=H3[G3[K3]];}K3++;}return J3;}var L3=pick$1;function pluck$1(M3,N3){var O3=[];g3(function(P3){if(!(P3[M3]===void 0)){O3.push(P3[M3]);}},N3);return O3;}var Q3=q(pluck$1);function prepend$1(R3,S3){var T3=S3.concat();T3.unshift(R3);return T3;}var U3=q(prepend$1);function prop$1(V3,W3){return W3[V3];}var X3=q(prop$1);function propEq$1(Y3,Z3,a4){return a4[Y3]===Z3;}var b4=v(propEq$1);function range$1(c4,d4){for(var e4=[],i=c4;i<d4;i++){e4.push(i);}return e4;}var f4=range$1;function reduce$1(fn,h4,i4){return i4.reduce(fn,h4);}var j4=v(reduce$1);function repeat$1(a,k4){var l4=Array(k4);return l4.fill(a);}var m4=q(repeat$1);function replace$1(n4,o4,p4){return p4.replace(n4,o4);}var q4=v(replace$1);function sort$1(fn,s4){var t4=s4.concat();return t4.sort(fn);}var u4=q(sort$1);function sortBy$1(fn,w4){var x4=w4.concat();return x4.sort(function(a,b){var y4=fn(a),z4=fn(b);return y4<z4?-1:y4>z4?1:0;});}var A4=q(sortBy$1);function split$1(B4,C4){return C4.split(B4);}var D4=q(split$1);function splitEvery$1(E4,a){E4=E4>1?E4:1;var F4=[],G4=0;while(G4<a.length){F4.push(a.slice(G4,G4+=E4));}return F4;}var H4=q(splitEvery$1);function tap$1(fn,J4){fn(J4);return J4;}var K4=q(tap$1);function tail$1(L4){return o2(1,L4);}var M4=tail$1;function take$1(N4,a){if(a===void 0){return function(O4){return take$1(N4,O4);};}else if(typeof a==="string"){return a.slice(0,N4);}return Y2(a,0,N4);}var P4=q(take$1);function takeLast$1(Q4,a){var R4=a.length;Q4=Q4>R4?R4:Q4;if(typeof a==="string"){return a.slice(R4-Q4);}Q4=R4-Q4;return Y2(a,Q4,R4);}var S4=q(takeLast$1);function test$1(T4,U4){return U4.search(T4)===-1?!1:!0;}var V4=q(test$1);function uniq$1(W4){var X4=-1,Y4=[];while(++X4<W4.length){var Z4=W4[X4];if(!d2(Z4,Y4)){Y4.push(Z4);}}return Y4;}var a5=uniq$1;function update$1(b5,c5,d5){var e5=d5.concat();return e5.fill(c5,b5,b5+1);}var f5=v(update$1);function values$1(g5){var h5=[];for(var i5 in g5){h5.push(g5[i5]);}return h5;}var j5=values$1,k5=A('+'),l5=X,m5=e1,always=function always(x){return function(){return x;};},n5=i1,o5=m1,p5=y1,q5=C1,r5=E1,s5=H1,complement=function complement(fn){return function(u5){return!Boolean(fn(u5));};},v5=G("concat"),w5=d2,x5=i2,y5=m2,z5=A('/'),A5=o2,B5=q2,C5=s2,D5=l("endsWith"),E5=Y1,F=function F(){return!1;},F5=u1,G5=v2,H5=A2,I5=D2,J5=G2,K5=H2,identity=function identity(x){return x;},L5=M2,M5=l("includes"),N5=R2,O5=Z2,P5=l('join'),Q5=a3,R5=l("lastIndexOf"),S5=J("length"),T5=g3,U5=k3,V5=n3,W5=A('%'),X5=A('*'),not=function not(x){return!x;},Y5=t3,Z5=l('padEnd'),a6=l('padStart'),b6=z3,c6=F3,d6=L3,e6=Q3,f6=U3,g6=X3,h6=b4,i6=f4,j6=j4,k6=m4,l6=q4,m6=M('reverse'),n6=u4,o6=A4,p6=D4,q6=H4,r6=l("startsWith"),s6=A('-'),T=function T(){return!0;},t6=K4,u6=M4,v6=P4,w6=S4,x6=V4,y6=M("toLowerCase"),z6=M('toString'),A6=M("toUpperCase"),B6=M("trim"),C6=P1,D6=a5,E6=f5,F6=j5,G6={add:k5,addIndex:l5,adjust:m5,always:always,any:n5,append:o5,all:p5,allPass:q5,both:r5,compose:s5,complement:complement,concat:v5,contains:w5,curry:x5,defaultTo:y5,divide:z5,drop:A5,dropLast:B5,either:C5,endsWith:D5,equals:E5,F:F,filter:F5,find:G5,findIndex:H5,flatten:I5,has:J5,head:K5,identity:identity,ifElse:L5,includes:M5,indexOf:N5,init:O5,join:P5,last:Q5,lastIndexOf:R5,length:S5,map:T5,match:U5,merge:V5,modulo:W5,multiply:X5,not:not,omit:Y5,padEnd:Z5,padStart:a6,partialCurry:b6,path:c6,pick:d6,pluck:e6,prepend:f6,prop:g6,propEq:h6,range:i6,reduce:j6,repeat:k6,replace:l6,reverse:m6,sort:n6,sortBy:o6,split:p6,splitEvery:q6,startsWith:r6,subtract:s6,T:T,tap:t6,tail:u6,take:v6,takeLast:w6,test:x6,toLower:y6,toString:z6,toUpper:A6,trim:B6,type:C6,uniq:D6,update:E6,values:F6};e['default']=G6;e.add=k5;e.addIndex=l5;e.adjust=m5;e.always=always;e.any=n5;e.append=o5;e.all=p5;e.allPass=q5;e.both=r5;e.compose=s5;e.complement=complement;e.concat=v5;e.contains=w5;e.curry=x5;e.defaultTo=y5;e.divide=z5;e.drop=A5;e.dropLast=B5;e.either=C5;e.endsWith=D5;e.equals=E5;e.F=F;e.filter=F5;e.find=G5;e.findIndex=H5;e.flatten=I5;e.has=J5;e.head=K5;e.identity=identity;e.ifElse=L5;e.includes=M5;e.indexOf=N5;e.init=O5;e.join=P5;e.last=Q5;e.lastIndexOf=R5;e.length=S5;e.map=T5;e.match=U5;e.merge=V5;e.modulo=W5;e.multiply=X5;e.not=not;e.omit=Y5;e.padEnd=Z5;e.padStart=a6;e.partialCurry=b6;e.path=c6;e.pick=d6;e.pluck=e6;e.prepend=f6;e.prop=g6;e.propEq=h6;e.range=i6;e.reduce=j6;e.repeat=k6;e.replace=l6;e.reverse=m6;e.sort=n6;e.sortBy=o6;e.split=p6;e.splitEvery=q6;e.startsWith=r6;e.subtract=s6;e.T=T;e.tap=t6;e.tail=u6;e.take=v6;e.takeLast=w6;e.test=x6;e.toLower=y6;e.toString=z6;e.toUpper=A6;e.trim=B6;e.type=C6;e.uniq=D6;e.update=E6;e.values=F6;Object.defineProperty(e,'__esModule',{value:!0});}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
189
1313
1434358
14
4505
3