ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
1,760 lines (1,413 loc) • 322 kB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("ramda"));
else if(typeof define === 'function' && define.amd)
define(["ramda"], factory);
else if(typeof exports === 'object')
exports["RA"] = factory(require("ramda"));
else
root["RA"] = factory(root["ramda"]);
})(global, function(__WEBPACK_EXTERNAL_MODULE__0__) {
return /******/ (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;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // 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 = 73);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isGeneratorFunction = _interopRequireDefault(__webpack_require__(19));
var _isAsyncFunction = _interopRequireDefault(__webpack_require__(20));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks if input value is `Function`.
*
* @func isFunction
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotFunction|isNotFunction}, {@link RA.isAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
* @example
*
* RA.isFunction(function test() { }); //=> true
* RA.isFunction(function* test() { }); //=> true
* RA.isFunction(async function test() { }); //=> true
* RA.isFunction(() => {}); //=> true
* RA.isFunction(null); //=> false
* RA.isFunction('abc'); //=> false
*/
var isFunction = (0, _ramda.anyPass)([(0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Function')), _isGeneratorFunction["default"], _isAsyncFunction["default"]]);
var _default = isFunction;
exports["default"] = _default;
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Checks if value is a `Number` primitive or object.
*
* @func isNumber
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.6.0|v0.6.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotNumber|isNotNumber}
* @example
*
* RA.isNumber(5); // => true
* RA.isNumber(Number.MAX_VALUE); // => true
* RA.isNumber(-Infinity); // => true
* RA.isNumber(NaN); // => true
* RA.isNumber('5'); // => false
*/
var isNumber = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Number')));
var _default = isNumber;
exports["default"] = _default;
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isFunction = _interopRequireDefault(__webpack_require__(1));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks if input value is `Array`.
*
* @func isArray
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotArray|isNotArray}
* @example
*
* RA.isArray([]); //=> true
* RA.isArray(null); //=> false
* RA.isArray({}); //=> false
*/
var isArray = (0, _ramda.curryN)(1, (0, _isFunction["default"])(Array.isArray) ? Array.isArray : (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Array')));
var _default = isArray;
exports["default"] = _default;
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = exports.isIntegerPolyfill = void 0;
var _ramda = __webpack_require__(0);
var _isFunction = _interopRequireDefault(__webpack_require__(1));
var _Number = _interopRequireDefault(__webpack_require__(94));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var isIntegerPolyfill = (0, _ramda.curryN)(1, _Number["default"]);
/**
* Checks whether the passed value is an `integer`.
*
* @func isInteger
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.7.0|v0.7.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotInteger|isNotInteger}
* @example
*
* RA.isInteger(0); //=> true
* RA.isInteger(1); //=> true
* RA.isInteger(-100000); //=> true
*
* RA.isInteger(0.1); //=> false
* RA.isInteger(Math.PI); //=> false
*
* RA.isInteger(NaN); //=> false
* RA.isInteger(Infinity); //=> false
* RA.isInteger(-Infinity); //=> false
* RA.isInteger('10'); //=> false
* RA.isInteger(true); //=> false
* RA.isInteger(false); //=> false
* RA.isInteger([1]); //=> false
*/
exports.isIntegerPolyfill = isIntegerPolyfill;
var isInteger = (0, _isFunction["default"])(Number.isInteger) ? (0, _ramda.curryN)(1, (0, _ramda.bind)(Number.isInteger, Number)) : isIntegerPolyfill;
var _default = isInteger;
exports["default"] = _default;
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/* eslint-disable max-len */
/**
* Composable shortcut for `Promise.resolve`.
*
* Returns a Promise object that is resolved with the given value.
* If the value is a thenable (i.e. has a "then" method), the returned promise will
* "follow" that thenable, adopting its eventual state.
*
* @func resolveP
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/1.16.0|v1.16.0}
* @category Function
* @sig a -> Promise a
* @param {*} [value=undefined] Argument to be resolved by this Promise. Can also be a Promise or a thenable to resolve
* @return {Promise} A Promise that is resolved with the given value, or the promise passed as value, if the value was a promise object
* @see {@link RA.rejectP|rejectP}
* @example
*
* RA.resolveP(); //=> Promise(undefined)
* RA.resolveP('a'); //=> Promise('a')
* RA.resolveP([1, 2, 3]); //=> Promise([1, 2, 3])
*/
/* eslint-enable max-len */
var resolveP = (0, _ramda.bind)(Promise.resolve, Promise);
var _default = resolveP;
exports["default"] = _default;
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Checks if input value is `String`.
*
* @func isString
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotString|isNotString}
* @example
*
* RA.isString('abc'); //=> true
* RA.isString(1); //=> false
*/
var isString = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('String')));
var _default = isString;
exports["default"] = _default;
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Composable shortcut for `Promise.all`.
*
* The `allP` method returns a single Promise that resolves when all of the promises
* in the iterable argument have resolved or when the iterable argument contains no promises.
* It rejects with the reason of the first promise that rejects.
*
* @func allP
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.3.0|v2.3.0}
* @category Function
* @sig [Promise a] -> Promise [a]
* @param {Iterable.<*>} iterable An iterable object such as an Array or String
* @return {Promise} An already resolved Promise if the iterable passed is empty. An asynchronously resolved Promise if the iterable passed contains no promises. Note, Google Chrome 58 returns an already resolved promise in this case. A pending Promise in all other cases. This returned promise is then resolved/rejected asynchronously (as soon as the stack is empty) when all the promises in the given iterable have resolved, or if any of the promises reject. See the example about "Asynchronicity or synchronicity of allP" below.
* @see {@link RA.resolveP|resolveP}, {@link RA.rejectP|rejectP}
* @example
*
* RA.allP([1, 2]); //=> Promise([1, 2])
* RA.allP([1, Promise.resolve(2)]); //=> Promise([1, 2])
* RA.allP([Promise.resolve(1), Promise.resolve(2)]); //=> Promise([1, 2])
* RA.allP([1, Promise.reject(2)]); //=> Promise(2)
*/
var allP = (0, _ramda.curryN)(1, (0, _ramda.bind)(Promise.all, Promise));
var _default = allP;
exports["default"] = _default;
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var compareLength = (0, _ramda.curry)(function (comparator, value, list) {
return (0, _ramda.compose)(comparator(value), _ramda.length)(list);
});
var _default = compareLength;
exports["default"] = _default;
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* A function that returns `undefined`.
*
* @func stubUndefined
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
* @category Function
* @sig ... -> undefined
* @return {undefined}
* @example
*
* RA.stubUndefined(); //=> undefined
* RA.stubUndefined(1, 2, 3); //=> undefined
*/
var stubUndefined = (0, _ramda.always)(void 0); // eslint-disable-line no-void
var _default = stubUndefined;
exports["default"] = _default;
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = exports.isFinitePolyfill = void 0;
var _ramda = __webpack_require__(0);
var _isFunction = _interopRequireDefault(__webpack_require__(1));
var _Number = _interopRequireDefault(__webpack_require__(93));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var isFinitePolyfill = (0, _ramda.curryN)(1, _Number["default"]);
/**
* Checks whether the passed value is a finite `Number`.
*
* @func isFinite
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.7.0|v0.7.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotFinite|isNotFinite}
* @example
*
* RA.isFinite(Infinity); //=> false
* RA.isFinite(NaN); //=> false
* RA.isFinite(-Infinity); //=> false
*
* RA.isFinite(0); // true
* RA.isFinite(2e64); // true
*
* RA.isFinite('0'); // => false
* // would've been true with global isFinite('0')
* RA.isFinite(null); // => false
* // would've been true with global isFinite(null)
*/
exports.isFinitePolyfill = isFinitePolyfill;
var _isFinite = (0, _isFunction["default"])(Number.isFinite) ? (0, _ramda.curryN)(1, (0, _ramda.bind)(Number.isFinite, Number)) : isFinitePolyfill;
var _default = _isFinite;
exports["default"] = _default;
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isUndefined = _interopRequireDefault(__webpack_require__(12));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks if input value is complement `undefined`.
*
* @func isNotUndefined
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.0.1|v0.0.1}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isUndefined|isUndefined}
* @example
*
* RA.isNotUndefined(1); //=> true
* RA.isNotUndefined(undefined); //=> false
* RA.isNotUndefined(null); //=> true
*/
var isNotUndefined = (0, _ramda.complement)(_isUndefined["default"]);
var _default = isNotUndefined;
exports["default"] = _default;
/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _stubUndefined = _interopRequireDefault(__webpack_require__(9));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks if input value is `undefined`.
*
* @func isUndefined
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.0.1|v0.0.1}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotUndefined|isNotUndefined}
* @example
*
* RA.isUndefined(1); //=> false
* RA.isUndefined(undefined); //=> true
* RA.isUndefined(null); //=> false
*/
var isUndefined = (0, _ramda.equals)((0, _stubUndefined["default"])());
var _default = isUndefined;
exports["default"] = _default;
/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isNotNull = _interopRequireDefault(__webpack_require__(17));
var _isFunction = _interopRequireDefault(__webpack_require__(1));
var _isOfTypeObject = _interopRequireDefault(__webpack_require__(39));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/* eslint-disable max-len */
/**
* Checks if input value is language type of `Object`.
*
* @func isObj
* @aliases isObject
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotObj|isNotObj}, {@link RA.isObjLike|isObjLike}, {@link RA.isPlainObj|isPlainObj}
* @example
*
* RA.isObj({}); //=> true
* RA.isObj([]); //=> true
* RA.isObj(() => {}); //=> true
* RA.isObj(null); //=> false
* RA.isObj(undefined); //=> false
*/
/* eslint-enable max-len */
var isObj = (0, _ramda.curryN)(1, (0, _ramda.both)(_isNotNull["default"], (0, _ramda.either)(_isOfTypeObject["default"], _isFunction["default"])));
var _default = isObj;
exports["default"] = _default;
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Composable shortcut for `Promise.reject`.
*
* Returns a Promise object that is rejected with the given reason.
*
* @func rejectP
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/1.16.0|v1.16.0}
* @category Function
* @sig a -> Promise a
* @param {*} [reason=undefined] Reason why this Promise rejected
* @return {Promise} A Promise that is rejected with the given reason
* @see {@link RA.resolveP|resolveP}
* @example
*
* RA.rejectP(); //=> Promise(undefined)
* RA.rejectP('a'); //=> Promise('a')
* RA.rejectP([1, 2, 3]); //=> Promise([1, 2, 3])
*/
var rejectP = (0, _ramda.bind)(Promise.reject, Promise);
var _default = rejectP;
exports["default"] = _default;
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _compareLength = _interopRequireDefault(__webpack_require__(8));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Returns `true` if the supplied list or string has a length equal to `valueLength`.
*
* @func lengthEq
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.8.0|v2.8.0}
* @category List
* @sig Number -> [*] -> Boolean
* @param {number} valueLength The length of the list or string
* @param {Array|string} value The list or string
* @return {boolean}
* @see {@link RA.lengthNotEq|lengthNotEq}, {@link RA.lengthLt|lengthLt}, {@link RA.lengthGt|lengthGt}, {@link RA.lengthLte|lengthLte}, {@link RA.lengthGte|lengthGte},, {@link http://ramdajs.com/docs/#equals|equals}, {@link http://ramdajs.com/docs/#length|length}
* @example
*
* RA.lengthEq(3, [1,2,3]); //=> true
* RA.lengthEq(3, [1,2,3,4]); //=> false
*/
var lengthEq = (0, _compareLength["default"])(_ramda.equals);
var _default = lengthEq;
exports["default"] = _default;
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Checks if input value is `null`.
*
* @func isNull
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.1.0|v0.1.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotNull|isNotNull}
* @example
*
* RA.isNull(1); //=> false
* RA.isNull(undefined); //=> false
* RA.isNull(null); //=> true
*/
var isNull = (0, _ramda.equals)(null);
var _default = isNull;
exports["default"] = _default;
/***/ }),
/* 17 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isNull = _interopRequireDefault(__webpack_require__(16));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks if input value is complement of `null`.
*
* @func isNotNull
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.1.0|v0.1.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNull|isNull}
* @example
*
* RA.isNotNull(1); //=> true
* RA.isNotNull(undefined); //=> true
* RA.isNotNull(null); //=> false
*/
var isNotNull = (0, _ramda.complement)(_isNull["default"]);
var _default = isNotNull;
exports["default"] = _default;
/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Checks if input value is complement of `null` or `undefined`.
*
* @func isNotNil
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link http://ramdajs.com/docs/#isNil|R.isNil}
* @example
*
* RA.isNotNil(null); //=> false
* RA.isNotNil(undefined); //=> false
* RA.isNotNil(0); //=> true
* RA.isNotNil([]); //=> true
*/
var isNotNil = (0, _ramda.complement)(_ramda.isNil);
var _default = isNotNil;
exports["default"] = _default;
/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var GeneratorFunction = null;
var legacyCheck = null;
try {
GeneratorFunction = new Function('return function* () {}')().constructor; // eslint-disable-line no-new-func
legacyCheck = (0, _ramda.is)(GeneratorFunction);
} catch (e) {
legacyCheck = _ramda.F;
}
/**
* Checks if input value is `Generator Function`.
*
* @func isGeneratorFunction
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isAsyncFunction}, {@link RA.isNotGeneratorFunction|isNotGeneratorFunction}
* @example
*
* RA.isGeneratorFunction(function* test() { }); //=> true
* RA.isGeneratorFunction(null); //=> false
* RA.isGeneratorFunction(function test() { }); //=> false
* RA.isGeneratorFunction(() => {}); //=> false
*/
var isGeneratorFunction = (0, _ramda.curryN)(1, (0, _ramda.either)((0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('GeneratorFunction')), legacyCheck));
var _default = isGeneratorFunction;
exports["default"] = _default;
/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Checks if input value is `Async Function`.
*
* @func isAsyncFunction
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isFunction|isFunction}, {@link RA.isNotAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
* @example
*
* RA.isAsyncFunction(async function test() { }); //=> true
* RA.isAsyncFunction(null); //=> false
* RA.isAsyncFunction(function test() { }); //=> false
* RA.isAsyncFunction(() => {}); //=> false
*/
var isAsyncFunction = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('AsyncFunction')));
var _default = isAsyncFunction;
exports["default"] = _default;
/***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isFunction = _interopRequireDefault(__webpack_require__(1));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks whether the passed value is iterable.
*
* @func isIterable
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.18.0|v2.18.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol}
* @return {boolean}
* @example
*
* RA.isIterable(['arrays', 'are', 'iterable']); //=> true
* RA.isIterable('strings are iterable, too'); //=> true
* RA.isIterable((function* () {})()); //=> true (generator objects are both iterable and iterators)
*
* RA.isIterable({}); //=> false
* RA.isIterable(-0); //=> false
* RA.isIterable(null); //=> false
* RA.isIterable(undefined); //=> false
*/
var isIterable = (0, _ramda.curryN)(1, function (val) {
if (typeof Symbol === 'undefined') {
return false;
}
return (0, _ramda.hasIn)(Symbol.iterator, Object(val)) && (0, _isFunction["default"])(val[Symbol.iterator]);
});
var _default = isIterable;
exports["default"] = _default;
/***/ }),
/* 22 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Returns true if the given value is not its type's empty value; `false` otherwise.
*
* @func isNotEmpty
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0}
* @category Logic
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link http://ramdajs.com/docs/#isEmpty|R.isEmpty}
* @example
*
* RA.isNotEmpty([1, 2, 3]); //=> true
* RA.isNotEmpty([]); //=> false
* RA.isNotEmpty(''); //=> false
* RA.isNotEmpty(null); //=> true
* RA.isNotEmpty(undefined): //=> true
* RA.isNotEmpty({}); //=> false
* RA.isNotEmpty({length: 0}); //=> true
*/
var isNotEmpty = (0, _ramda.complement)(_ramda.isEmpty);
var _default = isNotEmpty;
exports["default"] = _default;
/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isArray = _interopRequireDefault(__webpack_require__(3));
var _isString = _interopRequireDefault(__webpack_require__(6));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/* eslint-disable max-len */
/**
* Tests whether or not an object is similar to an array.
*
* @func isArrayLike
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/1.9.0|v1.9.0}
* @licence https://github.com/ramda/ramda/blob/master/LICENSE.txt
* @category List
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @returns {boolean} `true` if `val` has a numeric length property and extreme indices defined; `false` otherwise.
* @see {@link RA.isNotArrayLike|isNotArrayLike}
* @example
*
* RA.isArrayLike([]); //=> true
* RA.isArrayLike(true); //=> false
* RA.isArrayLike({}); //=> false
* RA.isArrayLike({length: 10}); //=> false
* RA.isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
*/
/* eslint-enable max-len */
var isArrayLike = (0, _ramda.curryN)(1, function (val) {
if ((0, _isArray["default"])(val)) {
return true;
}
if (!val) {
return false;
}
if ((0, _isString["default"])(val)) {
return false;
}
if (_typeof(val) !== 'object') {
return false;
}
if (val.nodeType === 1) {
return !!val.length;
}
if (val.length === 0) {
return true;
}
if (val.length > 0) {
return (0, _ramda.has)(0, val) && (0, _ramda.has)(val.length - 1, val);
}
return false;
});
var _default = isArrayLike;
/**
The MIT License (MIT)
Copyright (c) 2013-2016 Scott Sauyet and Michael Hurley
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
exports["default"] = _default;
/***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isFunction = _interopRequireDefault(__webpack_require__(1));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/* eslint-disable max-len */
/**
* Checks if input value is complement of `Function`.
*
* @func isNotFunction
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
* @example
*
* RA.isNotFunction(function test() { }); //=> false
* RA.isNotFunction(function* test() { }); //=> false
* RA.isNotFunction(async function test() { }); //=> false
* RA.isNotFunction(() => {}); //=> false
* RA.isNotFunction(null); //=> true
* RA.isNotFunction('abc'); //=> true
*/
/* eslint-enable max-len */
var isNotFunction = (0, _ramda.complement)(_isFunction["default"]);
var _default = isNotFunction;
exports["default"] = _default;
/***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isNotNull = _interopRequireDefault(__webpack_require__(17));
var _isOfTypeObject = _interopRequireDefault(__webpack_require__(39));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/* eslint-disable max-len */
/**
* Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object".
*
* @func isObjLike
* @aliases isObjectLike
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotObjLike|isNotObjLike}, {@link RA.isObj|isObj}, {@link RA.isPlainObj|isPlainObj}
* @example
*
* RA.isObjLike({}); //=> true
* RA.isObjLike([]); //=> true
* RA.isObjLike(() => {}); //=> false
* RA.isObjLike(null); //=> false
* RA.isObjLike(undefined); //=> false
*/
/* eslint-enable max-len */
var isObjLike = (0, _ramda.curryN)(1, (0, _ramda.both)(_isNotNull["default"], _isOfTypeObject["default"]));
var _default = isObjLike;
exports["default"] = _default;
/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Checks if value is `Date` object.
*
* @func isDate
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.6.0|v0.6.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotDate|isNotDate}, {@link RA.isValidDate|isValidDate}, {@link RA.isNotValidDate|isNotValidDate}
* @example
*
* RA.isDate(new Date()); //=> true
* RA.isDate('1997-07-16T19:20+01:00'); //=> false
*/
var isDate = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Date')));
var _default = isDate;
exports["default"] = _default;
/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isInteger = _interopRequireDefault(__webpack_require__(4));
var _isFinite = _interopRequireDefault(__webpack_require__(10));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks whether the passed value is a `float`.
*
* @func isFloat
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/1.14.0|v1.14.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotFloat|isNotFloat}
* @example
*
* RA.isFloat(0); //=> false
* RA.isFloat(1); //=> false
* RA.isFloat(-100000); //=> false
*
* RA.isFloat(0.1); //=> true
* RA.isFloat(Math.PI); //=> true
*
* RA.isFloat(NaN); //=> false
* RA.isFloat(Infinity); //=> false
* RA.isFloat(-Infinity); //=> false
* RA.isFloat('10'); //=> false
* RA.isFloat(true); //=> false
* RA.isFloat(false); //=> false
* RA.isFloat([1]); //=> false
*/
var isFloat = (0, _ramda.both)(_isFinite["default"], (0, _ramda.complement)(_isInteger["default"]));
var _default = isFloat;
exports["default"] = _default;
/***/ }),
/* 28 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* In JavaScript, a `truthy` value is a value that is considered true
* when evaluated in a Boolean context. All values are truthy unless
* they are defined as falsy (i.e., except for `false`, `0`, `""`, `null`, `undefined`, and `NaN`).
*
* @func isTruthy
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.2.0|v2.2.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link https://developer.mozilla.org/en-US/docs/Glossary/Truthy|truthy}, {@link RA.isFalsy|isFalsy}
* @example
*
* RA.isTruthy({}); // => true
* RA.isTruthy([]); // => true
* RA.isTruthy(42); // => true
* RA.isTruthy(3.14); // => true
* RA.isTruthy('foo'); // => true
* RA.isTruthy(new Date()); // => true
* RA.isTruthy(Infinity); // => true
*/
var isTruthy = (0, _ramda.curryN)(1, Boolean);
var _default = isTruthy;
exports["default"] = _default;
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var mapping = Object.freeze({
equals: 'fantasy-land/equals',
lte: 'fantasy-land/lte',
compose: 'fantasy-land/compose',
id: 'fantasy-land/id',
concat: 'fantasy-land/concat',
empty: 'fantasy-land/empty',
map: 'fantasy-land/map',
contramap: 'fantasy-land/contramap',
ap: 'fantasy-land/ap',
of: 'fantasy-land/of',
alt: 'fantasy-land/alt',
zero: 'fantasy-land/zero',
reduce: 'fantasy-land/reduce',
traverse: 'fantasy-land/traverse',
chain: 'fantasy-land/chain',
chainRec: 'fantasy-land/chainRec',
extend: 'fantasy-land/extend',
extract: 'fantasy-land/extract',
bimap: 'fantasy-land/bimap',
promap: 'fantasy-land/promap'
});
var _default = mapping;
exports["default"] = _default;
/***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Returns true if the specified value is equal, in R.equals terms,
* to at least one element of the given list or false otherwise.
* Given list can be a string.
*
* Like {@link http://ramdajs.com/docs/#contains|R.contains} but with argument order reversed.
*
* @func contained
* @aliases included
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.8.0|v2.8.0}
* @deprecated since v2.12.0; please use RA.included alias
* @category List
* @sig [a] -> a -> Boolean
* @param {Array|String} list The list to consider
* @param {*} a The item to compare against
* @return {boolean} Returns Boolean `true` if an equivalent item is in the list or `false` otherwise
* @see {@link http://ramdajs.com/docs/#contains|R.contains}
* @example
*
* RA.contained([1, 2, 3], 3); //=> true
* RA.contained([1, 2, 3], 4); //=> false
* RA.contained([{ name: 'Fred' }], { name: 'Fred' }); //=> true
* RA.contained([[42]], [42]); //=> true
*/
var contained = (0, _ramda.flip)(_ramda.contains);
var _default = contained;
exports["default"] = _default;
/***/ }),
/* 31 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _compareLength = _interopRequireDefault(__webpack_require__(8));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Returns `true` if the supplied list or string has a length less than or equal to `valueLength`.
*
* @func lengthLte
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.8.0|v2.8.0}
* @category List
* @sig Number -> [*] -> Boolean
* @param {number} valueLength The length of the list or string
* @param {Array|string} value The list or string
* @return {boolean}
* @see {@link RA.lengthEq|lengthEq}, {@link RA.lengthNotEq|lengthNotEq}, {@link RA.lengthLt|lengthLt}, {@link RA.lengthGt|lengthGt}, {@link RA.lengthGte|lengthGte}, {@link http://ramdajs.com/docs/#lte|lte}, {@link http://ramdajs.com/docs/#length|length}
* @example
*
* RA.lengthLte(3, [1,2]); //=> true
* RA.lengthLte(3, [1,2,3]); //=> true
* RA.lengthLte(3, [1,2,3,4]); //=> false
*/
var lengthLte = (0, _compareLength["default"])((0, _ramda.flip)(_ramda.lte));
var _default = lengthLte;
exports["default"] = _default;
/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _isNotFinite = _interopRequireDefault(__webpack_require__(47));
var _isNegative = _interopRequireDefault(__webpack_require__(44));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var repeat = function repeat(value, count) {
var validCount = Number(count);
if (validCount !== count) {
validCount = 0;
}
if ((0, _isNegative["default"])(validCount)) {
throw new RangeError('repeat count must be non-negative');
}
if ((0, _isNotFinite["default"])(validCount)) {
throw new RangeError('repeat count must be less than infinity');
}
validCount = Math.floor(validCount);
if (value.length === 0 || validCount === 0) {
return '';
} // Ensuring validCount is a 31-bit integer allows us to heavily optimize the
// main part. But anyway, most current (August 2014) browsers can't handle
// strings 1 << 28 chars or longer, so:
// eslint-disable-next-line no-bitwise
if (value.length * validCount >= 1 << 28) {
throw new RangeError('repeat count must not overflow maximum string size');
}
var maxCount = value.length * validCount;
validCount = Math.floor(Math.log(validCount) / Math.log(2));
var result = value;
while (validCount) {
result += value;
validCount -= 1;
}
result += result.substring(0, maxCount - result.length);
return result;
};
var _default = repeat;
exports["default"] = _default;
/***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isArray = _interopRequireDefault(__webpack_require__(3));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks if input value is an empty `Array`.
*
* @func isEmptyArray
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.4.0|v2.4.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotEmptyArray|isNotEmptyArray}
* @example
*
* RA.isEmptyArray([]); // => true
* RA.isEmptyArray([42]); // => false
* RA.isEmptyArray({}); // => false
* RA.isEmptyArray(null); // => false
* RA.isEmptyArray(undefined); // => false
* RA.isEmptyArray(42); // => false
* RA.isEmptyArray('42'); // => false
*/
var isEmptyArray = (0, _ramda.both)(_isArray["default"], _ramda.isEmpty);
var _default = isEmptyArray;
exports["default"] = _default;
/***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isArray = _interopRequireDefault(__webpack_require__(3));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks if input value is complement of `Array`
*
* @func isNotArray
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isArray|isArray}
* @example
*
* RA.isNotArray([]); //=> false
* RA.isNotArray(null); //=> true
* RA.isNotArray({}); //=> true
*/
var isNotArray = (0, _ramda.complement)(_isArray["default"]);
var _default = isNotArray;
exports["default"] = _default;
/***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isNotEmpty = _interopRequireDefault(__webpack_require__(22));
var _isArray = _interopRequireDefault(__webpack_require__(3));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks if input value is not an empty `Array`.
*
* @func isNonEmptyArray
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.4.0|v2.4.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isEmptyArray|isEmptyArray}
* @example
*
* RA.isNonEmptyArray([42]); // => true
* RA.isNonEmptyArray([]); // => false
* RA.isNonEmptyArray({}); // => false
* RA.isNonEmptyArray(null); // => false
* RA.isNonEmptyArray(undefined); // => false
* RA.isNonEmptyArray(42); // => false
* RA.isNonEmptyArray('42'); // => false
*/
var isNonEmptyArray = (0, _ramda.both)(_isArray["default"], _isNotEmpty["default"]);
var _default = isNonEmptyArray;
exports["default"] = _default;
/***/ }),
/* 36 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Checks if input value is `Boolean`.
*
* @func isBoolean
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotBoolean|isNotBoolean}
* @example
*
* RA.isBoolean(false); //=> true
* RA.isBoolean(true); //=> true
* RA.isBoolean(null); //=> false
*/
var isBoolean = (0, _ramda.curryN)(1, (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Boolean')));
var _default = isBoolean;
exports["default"] = _default;
/***/ }),
/* 37 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
/**
* Returns `true` if the given value is its type's empty value, `null` or `undefined`.
*
* @func isNilOrEmpty
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link http://ramdajs.com/docs/#isEmpty|R.isEmpty}, {@link http://ramdajs.com/docs/#isNil|R.isNil}
* @example
*
* RA.isNilOrEmpty([1, 2, 3]); //=> false
* RA.isNilOrEmpty([]); //=> true
* RA.isNilOrEmpty(''); //=> true
* RA.isNilOrEmpty(null); //=> true
* RA.isNilOrEmpty(undefined): //=> true
* RA.isNilOrEmpty({}); //=> true
* RA.isNilOrEmpty({length: 0}); //=> false
*/
var isNilOrEmpty = (0, _ramda.curryN)(1, (0, _ramda.either)(_ramda.isNil, _ramda.isEmpty));
var _default = isNilOrEmpty;
exports["default"] = _default;
/***/ }),
/* 38 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isObj = _interopRequireDefault(__webpack_require__(13));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/* eslint-disable max-len */
/**
* Checks if input value is complement of language type of `Object`.
*
* @func isNotObj
* @aliases isNotObject
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isObj|isObj}, {@link RA.isObjLike|isObjLike}, {@link RA.isPlainObj|isPlainObj}
* @example
*
* RA.isNotObj({}); //=> false
* RA.isNotObj([]); //=> false
* RA.isNotObj(() => {}); //=> false
* RA.isNotObj(null); //=> true
* RA.isNotObj(undefined); //=> true
*/
/* eslint-enable max-len */
var isNotObj = (0, _ramda.complement)(_isObj["default"]);
var _default = isNotObj;
exports["default"] = _default;
/***/ }),
/* 39 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
var isOfTypeObject = function isOfTypeObject(val) {
return _typeof(val) === 'object';
};
var _default = isOfTypeObject;
exports["default"] = _default;
/***/ }),
/* 40 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = __webpack_require__(0);
var _isNull = _interopRequireDefault(__webpack_require__(16));
var _isObjLike = _interopRequireDefault(__webpack_require__(25));
var _isFunction = _interopRequireDefault(__webpack_require__(1));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var isObject = (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Object'));
var isObjectConstructor = (0, _ramda.pipe)(_ramda.toString, (0, _ramda.equals)((0, _ramda.toString)(Object)));
var hasObjectConstructor = (0, _ramda.pathSatisfies)((0, _ramda.both)(_isFunction["default"], isObjectConstructor), ['constructor']);
/* eslint-disable max-len */
/**
* Check to see if an object is a plain object (created using `{}`, `new Object()` or `Object.create(null)`).
*
* @func isPlainObj
* @aliases isPlainObject
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNotPlainObj|isNotPlainObj}, {@link RA.isObjLike|isObjLike}, {@link RA.isObj|isObj}
* @example
*
* class Bar {
* constructor() {
* this.prop = 'value';
* }
* }
*
* RA.isPlainObj(new Bar()); //=> false
* RA.isPlainObj({ prop: 'value' }); //=> true
* RA.isPlainObj(['a', 'b', 'c']); //=> false
* RA.isPlainObj(Object.create(null); //=> true
* RA.isPlainObj(new Object()); //=> true
*/
/* eslint-enable max-len */
var isPlainObj = (0, _ramda.curryN)(1, function (val) {
if (!(0, _isObjLike["default"])(val) || !isObject(val)) {
return false;
}
var proto = Object.getPrototypeOf(val);
if ((0, _isNull["default"])(proto)) {
return true;
}
return hasObjectConstructor(proto);
});
var _default = isPlainObj;
exports["default"] = _default;
/***/ }),
/* 41 */
/***/ (function(module, exports, __webpack_require_