Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ramda-adjunct

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramda-adjunct - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

es/internal/ap.js

12

CHANGELOG.md

@@ -0,1 +1,13 @@

<a name="1.6.0"></a>
# [1.6.0](https://github.com/char0n/ramda-adjunct/compare/v1.5.0...v1.6.0) (2017-05-16)
### Features
* **Identity:** add Setoid spec to Identity ([3c62ad6](https://github.com/char0n/ramda-adjunct/commit/3c62ad6))
* add mergeRight ([25051aa](https://github.com/char0n/ramda-adjunct/commit/25051aa))
* add stubNull ([7c71292](https://github.com/char0n/ramda-adjunct/commit/7c71292)), closes [#71](https://github.com/char0n/ramda-adjunct/issues/71)
<a name="1.5.0"></a>

@@ -2,0 +14,0 @@ # [1.5.0](https://github.com/char0n/ramda-adjunct/compare/v1.4.0...v1.5.0) (2017-05-10)

2

dist/RA.node.min.js

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

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("ramda"),require("fantasy-land")):"function"==typeof define&&define.amd?define(["ramda","fantasy-land"],n):"object"==typeof exports?exports.RA=n(require("ramda"),require("fantasy-land")):t.RA=n(t.ramda,t["fantasy-land"])}(this,function(t,n){return function(t){function n(r){if(i[r])return i[r].exports;var e=i[r]={i:r,l:!1,exports:{}};return t[r].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var i={};return n.m=t,n.c=i,n.i=function(t){return t},n.d=function(t,i,r){n.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=49)}([function(n,i){n.exports=t},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(6)),a=i(4),o=i.i(r.anyPass)([function(t){return"[object Function]"===Object.prototype.toString.call(t)},e.a,a.a]);n.a=o},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(7)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(56),e=i.n(r),a=e.a;n.a=a},function(t,n,i){"use strict";var r=function(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)};n.a=r},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(52)),a=i.i(r.or)(Number.isFinite,e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(2)),a=null;try{a=new Function("return function* () {}")().constructor}catch(t){}var o=function(t){var n="[object GeneratorFunction]"===Object.prototype.toString.call(t),o=i.i(e.a)(a)&&t instanceof a;return i.i(r.or)(n,o)};n.a=o},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.equals)(null));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(2)),a=i(47),o=i.i(r.both)(e.a,a.a);n.a=o},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.always)(void 0));n.a=e},function(t,n,i){"use strict";var r=i(55),e=i.n(r),a=e.a;n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.is)(Boolean));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.is)(Date));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(53)),a=i.i(r.or)(Number.isInteger,e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(54)),a=i.i(r.or)(Number.isNaN,e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(2)),a=i(1),o=i(47),u=i.i(r.both)(e.a,i.i(r.anyPass)([o.a,a.a]));n.a=u},function(t,n,i){"use strict";var r=i(57),e=i.n(r),a=i(0),o=(i.n(a),i(7)),u=i(8),c=i(1),s=i.i(a.pipe)(a.toString,i.i(a.equals)(i.i(a.toString)(Object))),f=i.i(a.pathSatisfies)(i.i(a.both)(c.a,s),["constructor"]),l=function(t){if(!i.i(u.a)(t)||!e()(t))return!1;var n=Object.getPrototypeOf(t);return!!i.i(o.a)(n)||f(n)};n.a=l},function(t,n,i){"use strict";var r=i(58),e=i.n(r),a=e.a;n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(9)),a=i.i(r.equals)(i.i(e.a)());n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(50)),a=e.a.of(1),o=e.a.of(2).map(r.add),u=function(t,n){try{return t.ap(n)&&r.ap}catch(t){return i.i(r.curryN)(2,i.i(r.flip)(r.ap))}}(o,a),c=i.i(r.curry)(function(t,n){var e=i.i(r.curryN)(t,n);return i.i(r.curryN)(t,function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];var o=i.i(r.map)(e,i.i(r.head)(n)),c=i.i(r.slice)(1,1/0,n);return i.i(r.reduce)(u,o,c)})});n.a=c},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(1)),a=i.i(r.invoker)(2,"cata"),o=i.i(r.invoker)(2,"either"),u=i.i(r.curry)(function(t,n,r){return i.i(e.a)(r.either)?o(t,n,r):a(t,n,r)});n.a=u},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),r.merge);n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.anyPass)([r.isNil,r.isEmpty]));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(10)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.complement)(r.isArrayLike));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(4)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(11)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(12)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.complement)(r.isEmpty));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(5)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(1)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(6)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(13)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(14)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.complement)(r.isNil));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(3)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(15)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(8)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(16)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(17)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(18)),a=i.i(r.complement)(e.a);n.a=a},function(t,n,i){"use strict";var r=i(19),e=function(t){return i.i(r.a)(t.length,t)};n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.unapply)(r.identity));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(9)),a=i.i(r.always)(i.i(e.a)());n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.curry)(function(t,n){return i.i(r.ap)([i.i(r.path)(r.__,n)],t)}));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.curryN)(2,i.i(r.compose)(r.values,r.pickAll)));n.a=e},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i.i(r.curryN)(2,i.i(r.flip)(r.merge)));n.a=e},function(t,n,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e=function(t){return"object"===(void 0===t?"undefined":r(t))};n.a=e},function(t,i){t.exports=n},function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=i(40),e=i(18),a=i(7),o=i(2),u=i(34),c=i(10),s=i(23),f=i(11),l=i(26),p=i(28),d=i(22),m=i(17),y=i(39),v=i(24),N=i(6),b=i(31),j=i(4),h=i(25),O=i(1),g=i(30),F=i(15),S=i(36),A=i(8),x=i(37),k=i(16),P=i(38),q=i(12),w=i(27),D=i(3),E=i(35),I=i(14),L=i(33),U=i(5),_=i(29),B=i(13),G=i(32),M=i(9),T=i(43),R=i(19),C=i(41),z=i(20),H=i(45),J=i(42),K=i(21),Q=i(46),V=i(44);i.d(n,"isNotUndefined",function(){return r.a}),i.d(n,"isUndefined",function(){return e.a}),i.d(n,"isNull",function(){return a.a}),i.d(n,"isNotNull",function(){return o.a}),i.d(n,"isNotNil",function(){return u.a}),i.d(n,"isArray",function(){return c.a}),i.d(n,"isNotArray",function(){return s.a}),i.d(n,"isBoolean",function(){return f.a}),i.d(n,"isNotBoolean",function(){return l.a}),i.d(n,"isNotEmpty",function(){return p.a}),i.d(n,"isNilOrEmpty",function(){return d.a}),i.d(n,"isString",function(){return m.a}),i.d(n,"isNotString",function(){return y.a}),i.d(n,"isNotArrayLike",function(){return v.a}),i.d(n,"isGeneratorFunction",function(){return N.a}),i.d(n,"isNotGeneratorFunction",function(){return b.a}),i.d(n,"isAsyncFunction",function(){return j.a}),i.d(n,"isNotAsyncFunction",function(){return h.a}),i.d(n,"isFunction",function(){return O.a}),i.d(n,"isNotFunction",function(){return g.a}),i.d(n,"isObject",function(){return F.a}),i.d(n,"isNotObject",function(){return S.a}),i.d(n,"isObjectLike",function(){return A.a}),i.d(n,"isNotObjectLike",function(){return x.a}),i.d(n,"isPlainObject",function(){return k.a}),i.d(n,"isNotPlainObject",function(){return P.a}),i.d(n,"isDate",function(){return q.a}),i.d(n,"isNotDate",function(){return w.a}),i.d(n,"isNumber",function(){return D.a}),i.d(n,"isNotNumber",function(){return E.a}),i.d(n,"isNaN",function(){return I.a}),i.d(n,"isNotNaN",function(){return L.a}),i.d(n,"isFinite",function(){return U.a}),i.d(n,"isNotFinite",function(){return _.a}),i.d(n,"isInteger",function(){return B.a}),i.d(n,"isNotInteger",function(){return G.a}),i.d(n,"stubUndefined",function(){return M.a}),i.d(n,"noop",function(){return T.a}),i.d(n,"liftFN",function(){return R.a}),i.d(n,"liftF",function(){return C.a}),i.d(n,"cata",function(){return z.a}),i.d(n,"pickIndexes",function(){return H.a}),i.d(n,"list",function(){return J.a}),i.d(n,"defaults",function(){return K.a}),i.d(n,"resetToDefault",function(){return Q.a}),i.d(n,"paths",function(){return V.a});var W={isNotUndefined:r.a,isUndefined:e.a,isNull:a.a,isNotNull:o.a,isNotNil:u.a,isArray:c.a,isNotArray:s.a,isBoolean:f.a,isNotBoolean:l.a,isNotEmpty:p.a,isNilOrEmpty:d.a,isString:m.a,isNotString:y.a,isNotArrayLike:v.a,isGeneratorFunction:N.a,isNotGeneratorFunction:b.a,isAsyncFunction:j.a,isNotAsyncFunction:h.a,isFunction:O.a,isNotFunction:g.a,isObject:F.a,isNotObject:S.a,isObjectLike:A.a,isNotObjectLike:x.a,isPlainObject:k.a,isNotPlainObject:P.a,isDate:q.a,isNotDate:w.a,isNumber:D.a,isNotNumber:E.a,isNaN:I.a,isNotNaN:L.a,isFinite:U.a,isNotFinite:_.a,isInteger:B.a,isNotInteger:G.a,stubUndefined:M.a,noop:T.a,liftFN:R.a,liftF:C.a,cata:z.a,pickIndexes:H.a,list:J.a,defaults:K.a,resetToDefault:Q.a,paths:V.a};n.default=W},function(t,n,i){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var e=i(48),a=i.n(e),o=i(51),u=function(){function t(n){r(this,t),this.value=n}return t.of=function(n){return new t(n)},t[a.a.of]=function(n){return t.of(n)},t.prototype.ap=function(t){return o.a.ap.bind(this)(t)},t.prototype[a.a.ap]=function(t){return this.ap(t)},t.prototype.map=function(t){return o.b.map.bind(this)(t)},t.prototype[a.a.map]=function(t){return this.map(t)},t}();n.a=u},function(t,n,i){"use strict";var r=i(48),e=i.n(r);i.d(n,"b",function(){return a}),i.d(n,"a",function(){return o});var a={map:function(t){return this.constructor.of(t(this.value))}};a[e.a.map]=a.map;var o={ap:function(t){var n=this;return t.map(function(t){return t(n.value)})}};o[e.a.ap]=o.ap},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(3)),a=i.i(r.both)(e.a,isFinite);n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(5)),a=i.i(r.both)(e.a,i.i(r.converge)(r.equals,[Math.floor,r.identity]));n.a=a},function(t,n,i){"use strict";var r=i(0),e=(i.n(r),i(3)),a=i.i(r.both)(e.a,isNaN);n.a=a},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object Number]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("ramda"),require("fantasy-land")):"function"==typeof define&&define.amd?define(["ramda","fantasy-land"],n):"object"==typeof exports?exports.RA=n(require("ramda"),require("fantasy-land")):t.RA=n(t.ramda,t["fantasy-land"])}(this,function(t,n){return function(t){function n(r){if(i[r])return i[r].exports;var a=i[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var i={};return n.m=t,n.c=i,n.i=function(t){return t},n.d=function(t,i,r){n.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=52)}([function(n,i){n.exports=t},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(9)),e=i(7),u=i.i(r.anyPass)([function(t){return"[object Function]"===Object.prototype.toString.call(t)},a.a,e.a]);n.a=u},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(3)),e=i(51),u=i.i(r.both)(a.a,e.a);n.a=u},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(10)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(58),a=i.n(r),e=a.a;n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(3)),e=i(1),u=i(51),o=i.i(r.both)(a.a,i.i(r.anyPass)([u.a,e.a]));n.a=o},function(t,n,i){"use strict";var r=i(59),a=i.n(r),e=i(0),u=(i.n(e),i(10)),o=i(2),c=i(1),s=i.i(e.pipe)(e.toString,i.i(e.equals)(i.i(e.toString)(Object))),f=i.i(e.pathSatisfies)(i.i(e.both)(c.a,s),["constructor"]),l=function(t){if(!i.i(o.a)(t)||!a()(t))return!1;var n=Object.getPrototypeOf(t);return!!i.i(u.a)(n)||f(n)};n.a=l},function(t,n,i){"use strict";var r=function(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)};n.a=r},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(54)),e=i.i(r.or)(Number.isFinite,a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(3)),e=null;try{e=new Function("return function* () {}")().constructor}catch(t){}var u=function(t){var n="[object GeneratorFunction]"===Object.prototype.toString.call(t),u=i.i(a.a)(e)&&t instanceof e;return i.i(r.or)(n,u)};n.a=u},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.equals)(null));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.always)(void 0));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(5)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(2)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(6)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(57),a=i.n(r),e=a.a;n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.is)(Boolean));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.is)(Date));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(55)),e=i.i(r.or)(Number.isInteger,a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(56)),e=i.i(r.or)(Number.isNaN,a.a);n.a=e},function(t,n,i){"use strict";var r=i(60),a=i.n(r),e=a.a;n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(11)),e=i.i(r.equals)(i.i(a.a)());n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(53)),e=i.i(r.curry)(function(t,n){var e=i.i(r.curryN)(t,n);return i.i(r.curryN)(t,function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var o=i.i(r.map)(e,i.i(r.head)(n)),c=i.i(r.slice)(1,1/0,n);return i.i(r.reduce)(a.a,o,c)})});n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(1)),e=i.i(r.curry)(function(t,n,r){return i.i(a.a)(r.cata)?r.cata(t,n):r.either(t,n)});n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),r.merge);n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.anyPass)([r.isNil,r.isEmpty]));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(15)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.complement)(r.isArrayLike));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(7)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(16)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(17)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.complement)(r.isEmpty));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(8)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(1)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(9)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(18)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(19)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.complement)(r.isNil));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(4)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(20)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(21)),e=i.i(r.complement)(a.a);n.a=e},function(t,n,i){"use strict";var r=i(22),a=function(t){return i.i(r.a)(t.length,t)};n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.unapply)(r.identity));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.flip)(r.merge));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(11)),e=i.i(r.always)(i.i(a.a)());n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.curry)(function(t,n){return i.i(r.ap)([i.i(r.path)(r.__,n)],t)}));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.curryN)(2,i.i(r.compose)(r.values,r.pickAll)));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.curry)(function(t,n){return i.i(r.reduce)(function(a,e){var u=i.i(r.has)(e,t)?t[e]:e;return i.i(r.assoc)(u,n[e],a)},{},i.i(r.keys)(n))}));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.curry)(function(t,n){return i.i(r.pipe)(r.toPairs,i.i(r.map)(i.i(r.adjust)(t,0)),r.fromPairs)(n)}));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.curryN)(2,i.i(r.flip)(r.merge)));n.a=a},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i.i(r.always)(null));n.a=a},function(t,n,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(t){return"object"===(void 0===t?"undefined":r(t))};n.a=a},function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=i(40),a=i(21),e=i(10),u=i(3),o=i(37),c=i(15),s=i(26),f=i(16),l=i(29),d=i(31),p=i(25),m=i(20),y=i(39),N=i(27),b=i(9),v=i(34),j=i(7),O=i(28),g=i(1),h=i(33),F=i(5),S=i(12),A=i(2),P=i(13),x=i(6),k=i(14),L=i(17),q=i(30),D=i(4),I=i(38),E=i(19),U=i(36),_=i(8),w=i(32),B=i(18),G=i(35),K=i(11),R=i(50),M=i(44),T=i(22),W=i(41),z=i(23),C=i(46),H=i(42),J=i(24),Q=i(49),V=i(45),X=i(47),Y=i(48),Z=i(43);i.d(n,"isNotUndefined",function(){return r.a}),i.d(n,"isUndefined",function(){return a.a}),i.d(n,"isNull",function(){return e.a}),i.d(n,"isNotNull",function(){return u.a}),i.d(n,"isNotNil",function(){return o.a}),i.d(n,"isArray",function(){return c.a}),i.d(n,"isNotArray",function(){return s.a}),i.d(n,"isBoolean",function(){return f.a}),i.d(n,"isNotBoolean",function(){return l.a}),i.d(n,"isNotEmpty",function(){return d.a}),i.d(n,"isNilOrEmpty",function(){return p.a}),i.d(n,"isString",function(){return m.a}),i.d(n,"isNotString",function(){return y.a}),i.d(n,"isNotArrayLike",function(){return N.a}),i.d(n,"isGeneratorFunction",function(){return b.a}),i.d(n,"isNotGeneratorFunction",function(){return v.a}),i.d(n,"isAsyncFunction",function(){return j.a}),i.d(n,"isNotAsyncFunction",function(){return O.a}),i.d(n,"isFunction",function(){return g.a}),i.d(n,"isNotFunction",function(){return h.a}),i.d(n,"isObj",function(){return F.a}),i.d(n,"isObject",function(){return F.a}),i.d(n,"isNotObj",function(){return S.a}),i.d(n,"isNotObject",function(){return S.a}),i.d(n,"isObjLike",function(){return A.a}),i.d(n,"isObjectLike",function(){return A.a}),i.d(n,"isNotObjLike",function(){return P.a}),i.d(n,"isNotObjectLike",function(){return P.a}),i.d(n,"isPlainObj",function(){return x.a}),i.d(n,"isPlainObject",function(){return x.a}),i.d(n,"isNotPlainObj",function(){return k.a}),i.d(n,"isNotPlainObject",function(){return k.a}),i.d(n,"isDate",function(){return L.a}),i.d(n,"isNotDate",function(){return q.a}),i.d(n,"isNumber",function(){return D.a}),i.d(n,"isNotNumber",function(){return I.a}),i.d(n,"isNaN",function(){return E.a}),i.d(n,"isNotNaN",function(){return U.a}),i.d(n,"isFinite",function(){return _.a}),i.d(n,"isNotFinite",function(){return w.a}),i.d(n,"isInteger",function(){return B.a}),i.d(n,"isNotInteger",function(){return G.a}),i.d(n,"stubUndefined",function(){return K.a}),i.d(n,"stubNull",function(){return R.a}),i.d(n,"noop",function(){return M.a}),i.d(n,"liftFN",function(){return T.a}),i.d(n,"liftF",function(){return W.a}),i.d(n,"cata",function(){return z.a}),i.d(n,"pickIndexes",function(){return C.a}),i.d(n,"list",function(){return H.a}),i.d(n,"defaults",function(){return J.a}),i.d(n,"resetToDefault",function(){return Q.a}),i.d(n,"paths",function(){return V.a}),i.d(n,"renameKeys",function(){return X.a}),i.d(n,"renameKeysWith",function(){return Y.a}),i.d(n,"mergeRight",function(){return Z.a});var $={isNotUndefined:r.a,isUndefined:a.a,isNull:e.a,isNotNull:u.a,isNotNil:o.a,isArray:c.a,isNotArray:s.a,isBoolean:f.a,isNotBoolean:l.a,isNotEmpty:d.a,isNilOrEmpty:p.a,isString:m.a,isNotString:y.a,isNotArrayLike:N.a,isGeneratorFunction:b.a,isNotGeneratorFunction:v.a,isAsyncFunction:j.a,isNotAsyncFunction:O.a,isFunction:g.a,isNotFunction:h.a,isObj:F.a,isObject:F.a,isNotObj:S.a,isNotObject:S.a,isObjLike:A.a,isObjectLike:A.a,isNotObjLike:P.a,isNotObjectLike:P.a,isPlainObj:x.a,isPlainObject:x.a,isNotPlainObj:k.a,isNotPlainObject:k.a,isDate:L.a,isNotDate:q.a,isNumber:D.a,isNotNumber:I.a,isNaN:E.a,isNotNaN:U.a,isFinite:_.a,isNotFinite:w.a,isInteger:B.a,isNotInteger:G.a,stubUndefined:K.a,stubNull:R.a,noop:M.a,liftFN:T.a,liftF:W.a,cata:z.a,pickIndexes:C.a,list:H.a,defaults:J.a,resetToDefault:Q.a,paths:V.a,renameKeys:X.a,renameKeysWith:Y.a,mergeRight:Z.a};n.default=$},function(t,n,i){"use strict";var r=i(61),a=i.n(r),e=i(0),u=(i.n(e),i(1)),o=i.i(e.anyPass)([i.i(e.pathSatisfies)(u.a,["map"]),i.i(e.pathSatisfies)(u.a,[a.a.map])]),c=i.i(e.both)(o,i.i(e.anyPass)([i.i(e.pathSatisfies)(u.a,["ap"]),i.i(e.pathSatisfies)(u.a,[a.a.ap])])),s=i.i(e.curryN)(2,function(t,n){if(!c(t)||!c(n))return i.i(e.ap)(t,n);try{return t.ap(n)}catch(i){return n.ap(t)}});n.a=s},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(4)),e=i.i(r.both)(a.a,isFinite);n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(8)),e=i.i(r.both)(a.a,i.i(r.converge)(r.equals,[Math.floor,r.identity]));n.a=e},function(t,n,i){"use strict";var r=i(0),a=(i.n(r),i(4)),e=i.i(r.both)(a.a,isNaN);n.a=e},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object Number]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}},function(t,i){t.exports=n}])});

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

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("R")):"function"==typeof define&&define.amd?define(["R"],n):"object"==typeof exports?exports.RA=n(require("R")):t.RA=n(t.R)}(this,function(t){return function(t){function n(a){if(i[a])return i[a].exports;var r=i[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var i={};return n.m=t,n.c=i,n.i=function(t){return t},n.d=function(t,i,a){n.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=49)}([function(n,i){n.exports=t},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(6)),e=i(4),o=i.i(a.anyPass)([function(t){return"[object Function]"===Object.prototype.toString.call(t)},r.a,e.a]);n.a=o},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(7)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(56),r=i.n(a),e=r.a;n.a=e},function(t,n,i){"use strict";var a=function(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)};n.a=a},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(52)),e=i.i(a.or)(Number.isFinite,r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(2)),e=null;try{e=new Function("return function* () {}")().constructor}catch(t){}var o=function(t){var n="[object GeneratorFunction]"===Object.prototype.toString.call(t),o=i.i(r.a)(e)&&t instanceof e;return i.i(a.or)(n,o)};n.a=o},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.equals)(null));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(2)),e=i(47),o=i.i(a.both)(r.a,e.a);n.a=o},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.always)(void 0));n.a=r},function(t,n,i){"use strict";var a=i(55),r=i.n(a),e=r.a;n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.is)(Boolean));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.is)(Date));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(53)),e=i.i(a.or)(Number.isInteger,r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(54)),e=i.i(a.or)(Number.isNaN,r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(2)),e=i(1),o=i(47),u=i.i(a.both)(r.a,i.i(a.anyPass)([o.a,e.a]));n.a=u},function(t,n,i){"use strict";var a=i(57),r=i.n(a),e=i(0),o=(i.n(e),i(7)),u=i(8),c=i(1),s=i.i(e.pipe)(e.toString,i.i(e.equals)(i.i(e.toString)(Object))),f=i.i(e.pathSatisfies)(i.i(e.both)(c.a,s),["constructor"]),l=function(t){if(!i.i(u.a)(t)||!r()(t))return!1;var n=Object.getPrototypeOf(t);return!!i.i(o.a)(n)||f(n)};n.a=l},function(t,n,i){"use strict";var a=i(58),r=i.n(a),e=r.a;n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(9)),e=i.i(a.equals)(i.i(r.a)());n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(50)),e=r.a.of(1),o=r.a.of(2).map(a.add),u=function(t,n){try{return t.ap(n)&&a.ap}catch(t){return i.i(a.curryN)(2,i.i(a.flip)(a.ap))}}(o,e),c=i.i(a.curry)(function(t,n){var r=i.i(a.curryN)(t,n);return i.i(a.curryN)(t,function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];var o=i.i(a.map)(r,i.i(a.head)(n)),c=i.i(a.slice)(1,1/0,n);return i.i(a.reduce)(u,o,c)})});n.a=c},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(1)),e=i.i(a.invoker)(2,"cata"),o=i.i(a.invoker)(2,"either"),u=i.i(a.curry)(function(t,n,a){return i.i(r.a)(a.either)?o(t,n,a):e(t,n,a)});n.a=u},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),a.merge);n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.anyPass)([a.isNil,a.isEmpty]));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(10)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.complement)(a.isArrayLike));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(4)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(11)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(12)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.complement)(a.isEmpty));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(5)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(1)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(6)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(13)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(14)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.complement)(a.isNil));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(3)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(15)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(8)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(16)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(17)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(18)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(19),r=function(t){return i.i(a.a)(t.length,t)};n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.unapply)(a.identity));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(9)),e=i.i(a.always)(i.i(r.a)());n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.curry)(function(t,n){return i.i(a.ap)([i.i(a.path)(a.__,n)],t)}));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.curryN)(2,i.i(a.compose)(a.values,a.pickAll)));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.curryN)(2,i.i(a.flip)(a.merge)));n.a=r},function(t,n,i){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t){return"object"===(void 0===t?"undefined":a(t))};n.a=r},function(t,n){!function(){"use strict";var n={equals:"fantasy-land/equals",lte:"fantasy-land/lte",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"};"object"==typeof t&&"object"==typeof t.exports?t.exports=n:self.FantasyLand=n}()},function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=i(40),r=i(18),e=i(7),o=i(2),u=i(34),c=i(10),s=i(23),f=i(11),l=i(26),p=i(28),d=i(22),y=i(17),m=i(39),v=i(24),N=i(6),b=i(31),j=i(4),h=i(25),O=i(1),g=i(30),F=i(15),x=i(36),S=i(8),A=i(37),k=i(16),P=i(38),q=i(12),L=i(27),R=i(3),w=i(35),D=i(14),E=i(33),I=i(5),U=i(29),_=i(13),B=i(32),G=i(9),M=i(43),T=i(19),z=i(41),C=i(20),H=i(45),J=i(42),K=i(21),Q=i(46),V=i(44);i.d(n,"isNotUndefined",function(){return a.a}),i.d(n,"isUndefined",function(){return r.a}),i.d(n,"isNull",function(){return e.a}),i.d(n,"isNotNull",function(){return o.a}),i.d(n,"isNotNil",function(){return u.a}),i.d(n,"isArray",function(){return c.a}),i.d(n,"isNotArray",function(){return s.a}),i.d(n,"isBoolean",function(){return f.a}),i.d(n,"isNotBoolean",function(){return l.a}),i.d(n,"isNotEmpty",function(){return p.a}),i.d(n,"isNilOrEmpty",function(){return d.a}),i.d(n,"isString",function(){return y.a}),i.d(n,"isNotString",function(){return m.a}),i.d(n,"isNotArrayLike",function(){return v.a}),i.d(n,"isGeneratorFunction",function(){return N.a}),i.d(n,"isNotGeneratorFunction",function(){return b.a}),i.d(n,"isAsyncFunction",function(){return j.a}),i.d(n,"isNotAsyncFunction",function(){return h.a}),i.d(n,"isFunction",function(){return O.a}),i.d(n,"isNotFunction",function(){return g.a}),i.d(n,"isObject",function(){return F.a}),i.d(n,"isNotObject",function(){return x.a}),i.d(n,"isObjectLike",function(){return S.a}),i.d(n,"isNotObjectLike",function(){return A.a}),i.d(n,"isPlainObject",function(){return k.a}),i.d(n,"isNotPlainObject",function(){return P.a}),i.d(n,"isDate",function(){return q.a}),i.d(n,"isNotDate",function(){return L.a}),i.d(n,"isNumber",function(){return R.a}),i.d(n,"isNotNumber",function(){return w.a}),i.d(n,"isNaN",function(){return D.a}),i.d(n,"isNotNaN",function(){return E.a}),i.d(n,"isFinite",function(){return I.a}),i.d(n,"isNotFinite",function(){return U.a}),i.d(n,"isInteger",function(){return _.a}),i.d(n,"isNotInteger",function(){return B.a}),i.d(n,"stubUndefined",function(){return G.a}),i.d(n,"noop",function(){return M.a}),i.d(n,"liftFN",function(){return T.a}),i.d(n,"liftF",function(){return z.a}),i.d(n,"cata",function(){return C.a}),i.d(n,"pickIndexes",function(){return H.a}),i.d(n,"list",function(){return J.a}),i.d(n,"defaults",function(){return K.a}),i.d(n,"resetToDefault",function(){return Q.a}),i.d(n,"paths",function(){return V.a});var W={isNotUndefined:a.a,isUndefined:r.a,isNull:e.a,isNotNull:o.a,isNotNil:u.a,isArray:c.a,isNotArray:s.a,isBoolean:f.a,isNotBoolean:l.a,isNotEmpty:p.a,isNilOrEmpty:d.a,isString:y.a,isNotString:m.a,isNotArrayLike:v.a,isGeneratorFunction:N.a,isNotGeneratorFunction:b.a,isAsyncFunction:j.a,isNotAsyncFunction:h.a,isFunction:O.a,isNotFunction:g.a,isObject:F.a,isNotObject:x.a,isObjectLike:S.a,isNotObjectLike:A.a,isPlainObject:k.a,isNotPlainObject:P.a,isDate:q.a,isNotDate:L.a,isNumber:R.a,isNotNumber:w.a,isNaN:D.a,isNotNaN:E.a,isFinite:I.a,isNotFinite:U.a,isInteger:_.a,isNotInteger:B.a,stubUndefined:G.a,noop:M.a,liftFN:T.a,liftF:z.a,cata:C.a,pickIndexes:H.a,list:J.a,defaults:K.a,resetToDefault:Q.a,paths:V.a};n.default=W},function(t,n,i){"use strict";function a(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var r=i(48),e=i.n(r),o=i(51),u=function(){function t(n){a(this,t),this.value=n}return t.of=function(n){return new t(n)},t[e.a.of]=function(n){return t.of(n)},t.prototype.ap=function(t){return o.a.ap.bind(this)(t)},t.prototype[e.a.ap]=function(t){return this.ap(t)},t.prototype.map=function(t){return o.b.map.bind(this)(t)},t.prototype[e.a.map]=function(t){return this.map(t)},t}();n.a=u},function(t,n,i){"use strict";var a=i(48),r=i.n(a);i.d(n,"b",function(){return e}),i.d(n,"a",function(){return o});var e={map:function(t){return this.constructor.of(t(this.value))}};e[r.a.map]=e.map;var o={ap:function(t){var n=this;return t.map(function(t){return t(n.value)})}};o[r.a.ap]=o.ap},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(3)),e=i.i(a.both)(r.a,isFinite);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(5)),e=i.i(a.both)(r.a,i.i(a.converge)(a.equals,[Math.floor,a.identity]));n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(3)),e=i.i(a.both)(r.a,isNaN);n.a=e},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object Number]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("R")):"function"==typeof define&&define.amd?define(["R"],n):"object"==typeof exports?exports.RA=n(require("R")):t.RA=n(t.R)}(this,function(t){return function(t){function n(a){if(i[a])return i[a].exports;var r=i[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var i={};return n.m=t,n.c=i,n.i=function(t){return t},n.d=function(t,i,a){n.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=52)}([function(n,i){n.exports=t},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(9)),e=i(7),o=i.i(a.anyPass)([function(t){return"[object Function]"===Object.prototype.toString.call(t)},r.a,e.a]);n.a=o},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(3)),e=i(51),o=i.i(a.both)(r.a,e.a);n.a=o},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(10)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(59),r=i.n(a),e=r.a;n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(3)),e=i(1),o=i(51),u=i.i(a.both)(r.a,i.i(a.anyPass)([o.a,e.a]));n.a=u},function(t,n,i){"use strict";var a=i(60),r=i.n(a),e=i(0),o=(i.n(e),i(10)),u=i(2),c=i(1),s=i.i(e.pipe)(e.toString,i.i(e.equals)(i.i(e.toString)(Object))),f=i.i(e.pathSatisfies)(i.i(e.both)(c.a,s),["constructor"]),l=function(t){if(!i.i(u.a)(t)||!r()(t))return!1;var n=Object.getPrototypeOf(t);return!!i.i(o.a)(n)||f(n)};n.a=l},function(t,n,i){"use strict";var a=function(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)};n.a=a},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(54)),e=i.i(a.or)(Number.isFinite,r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(3)),e=null;try{e=new Function("return function* () {}")().constructor}catch(t){}var o=function(t){var n="[object GeneratorFunction]"===Object.prototype.toString.call(t),o=i.i(r.a)(e)&&t instanceof e;return i.i(a.or)(n,o)};n.a=o},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.equals)(null));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.always)(void 0));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(5)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(2)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(6)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(58),r=i.n(a),e=r.a;n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.is)(Boolean));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.is)(Date));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(55)),e=i.i(a.or)(Number.isInteger,r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(56)),e=i.i(a.or)(Number.isNaN,r.a);n.a=e},function(t,n,i){"use strict";var a=i(61),r=i.n(a),e=r.a;n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(11)),e=i.i(a.equals)(i.i(r.a)());n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(53)),e=i.i(a.curry)(function(t,n){var e=i.i(a.curryN)(t,n);return i.i(a.curryN)(t,function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];var u=i.i(a.map)(e,i.i(a.head)(n)),c=i.i(a.slice)(1,1/0,n);return i.i(a.reduce)(r.a,u,c)})});n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(1)),e=i.i(a.curry)(function(t,n,a){return i.i(r.a)(a.cata)?a.cata(t,n):a.either(t,n)});n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),a.merge);n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.anyPass)([a.isNil,a.isEmpty]));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(15)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.complement)(a.isArrayLike));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(7)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(16)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(17)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.complement)(a.isEmpty));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(8)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(1)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(9)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(18)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(19)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.complement)(a.isNil));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(4)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(20)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(21)),e=i.i(a.complement)(r.a);n.a=e},function(t,n,i){"use strict";var a=i(22),r=function(t){return i.i(a.a)(t.length,t)};n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.unapply)(a.identity));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.flip)(a.merge));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(11)),e=i.i(a.always)(i.i(r.a)());n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.curry)(function(t,n){return i.i(a.ap)([i.i(a.path)(a.__,n)],t)}));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.curryN)(2,i.i(a.compose)(a.values,a.pickAll)));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.curry)(function(t,n){return i.i(a.reduce)(function(r,e){var o=i.i(a.has)(e,t)?t[e]:e;return i.i(a.assoc)(o,n[e],r)},{},i.i(a.keys)(n))}));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.curry)(function(t,n){return i.i(a.pipe)(a.toPairs,i.i(a.map)(i.i(a.adjust)(t,0)),a.fromPairs)(n)}));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.curryN)(2,i.i(a.flip)(a.merge)));n.a=r},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i.i(a.always)(null));n.a=r},function(t,n,i){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t){return"object"===(void 0===t?"undefined":a(t))};n.a=r},function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=i(40),r=i(21),e=i(10),o=i(3),u=i(37),c=i(15),s=i(26),f=i(16),l=i(29),p=i(31),d=i(25),y=i(20),m=i(39),N=i(27),b=i(9),v=i(34),j=i(7),O=i(28),h=i(1),g=i(33),F=i(5),S=i(12),x=i(2),A=i(13),P=i(6),k=i(14),L=i(17),R=i(30),q=i(4),D=i(38),I=i(19),E=i(36),U=i(8),_=i(32),w=i(18),B=i(35),G=i(11),K=i(50),M=i(44),z=i(22),T=i(41),W=i(23),C=i(46),H=i(42),J=i(24),Q=i(49),V=i(45),X=i(47),Y=i(48),Z=i(43);i.d(n,"isNotUndefined",function(){return a.a}),i.d(n,"isUndefined",function(){return r.a}),i.d(n,"isNull",function(){return e.a}),i.d(n,"isNotNull",function(){return o.a}),i.d(n,"isNotNil",function(){return u.a}),i.d(n,"isArray",function(){return c.a}),i.d(n,"isNotArray",function(){return s.a}),i.d(n,"isBoolean",function(){return f.a}),i.d(n,"isNotBoolean",function(){return l.a}),i.d(n,"isNotEmpty",function(){return p.a}),i.d(n,"isNilOrEmpty",function(){return d.a}),i.d(n,"isString",function(){return y.a}),i.d(n,"isNotString",function(){return m.a}),i.d(n,"isNotArrayLike",function(){return N.a}),i.d(n,"isGeneratorFunction",function(){return b.a}),i.d(n,"isNotGeneratorFunction",function(){return v.a}),i.d(n,"isAsyncFunction",function(){return j.a}),i.d(n,"isNotAsyncFunction",function(){return O.a}),i.d(n,"isFunction",function(){return h.a}),i.d(n,"isNotFunction",function(){return g.a}),i.d(n,"isObj",function(){return F.a}),i.d(n,"isObject",function(){return F.a}),i.d(n,"isNotObj",function(){return S.a}),i.d(n,"isNotObject",function(){return S.a}),i.d(n,"isObjLike",function(){return x.a}),i.d(n,"isObjectLike",function(){return x.a}),i.d(n,"isNotObjLike",function(){return A.a}),i.d(n,"isNotObjectLike",function(){return A.a}),i.d(n,"isPlainObj",function(){return P.a}),i.d(n,"isPlainObject",function(){return P.a}),i.d(n,"isNotPlainObj",function(){return k.a}),i.d(n,"isNotPlainObject",function(){return k.a}),i.d(n,"isDate",function(){return L.a}),i.d(n,"isNotDate",function(){return R.a}),i.d(n,"isNumber",function(){return q.a}),i.d(n,"isNotNumber",function(){return D.a}),i.d(n,"isNaN",function(){return I.a}),i.d(n,"isNotNaN",function(){return E.a}),i.d(n,"isFinite",function(){return U.a}),i.d(n,"isNotFinite",function(){return _.a}),i.d(n,"isInteger",function(){return w.a}),i.d(n,"isNotInteger",function(){return B.a}),i.d(n,"stubUndefined",function(){return G.a}),i.d(n,"stubNull",function(){return K.a}),i.d(n,"noop",function(){return M.a}),i.d(n,"liftFN",function(){return z.a}),i.d(n,"liftF",function(){return T.a}),i.d(n,"cata",function(){return W.a}),i.d(n,"pickIndexes",function(){return C.a}),i.d(n,"list",function(){return H.a}),i.d(n,"defaults",function(){return J.a}),i.d(n,"resetToDefault",function(){return Q.a}),i.d(n,"paths",function(){return V.a}),i.d(n,"renameKeys",function(){return X.a}),i.d(n,"renameKeysWith",function(){return Y.a}),i.d(n,"mergeRight",function(){return Z.a});var $={isNotUndefined:a.a,isUndefined:r.a,isNull:e.a,isNotNull:o.a,isNotNil:u.a,isArray:c.a,isNotArray:s.a,isBoolean:f.a,isNotBoolean:l.a,isNotEmpty:p.a,isNilOrEmpty:d.a,isString:y.a,isNotString:m.a,isNotArrayLike:N.a,isGeneratorFunction:b.a,isNotGeneratorFunction:v.a,isAsyncFunction:j.a,isNotAsyncFunction:O.a,isFunction:h.a,isNotFunction:g.a,isObj:F.a,isObject:F.a,isNotObj:S.a,isNotObject:S.a,isObjLike:x.a,isObjectLike:x.a,isNotObjLike:A.a,isNotObjectLike:A.a,isPlainObj:P.a,isPlainObject:P.a,isNotPlainObj:k.a,isNotPlainObject:k.a,isDate:L.a,isNotDate:R.a,isNumber:q.a,isNotNumber:D.a,isNaN:I.a,isNotNaN:E.a,isFinite:U.a,isNotFinite:_.a,isInteger:w.a,isNotInteger:B.a,stubUndefined:G.a,stubNull:K.a,noop:M.a,liftFN:z.a,liftF:T.a,cata:W.a,pickIndexes:C.a,list:H.a,defaults:J.a,resetToDefault:Q.a,paths:V.a,renameKeys:X.a,renameKeysWith:Y.a,mergeRight:Z.a};n.default=$},function(t,n,i){"use strict";var a=i(57),r=i.n(a),e=i(0),o=(i.n(e),i(1)),u=i.i(e.anyPass)([i.i(e.pathSatisfies)(o.a,["map"]),i.i(e.pathSatisfies)(o.a,[r.a.map])]),c=i.i(e.both)(u,i.i(e.anyPass)([i.i(e.pathSatisfies)(o.a,["ap"]),i.i(e.pathSatisfies)(o.a,[r.a.ap])])),s=i.i(e.curryN)(2,function(t,n){if(!c(t)||!c(n))return i.i(e.ap)(t,n);try{return t.ap(n)}catch(i){return n.ap(t)}});n.a=s},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(4)),e=i.i(a.both)(r.a,isFinite);n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(8)),e=i.i(a.both)(r.a,i.i(a.converge)(a.equals,[Math.floor,a.identity]));n.a=e},function(t,n,i){"use strict";var a=i(0),r=(i.n(a),i(4)),e=i.i(a.both)(r.a,isNaN);n.a=e},function(t,n){!function(){"use strict";var n={equals:"fantasy-land/equals",lte:"fantasy-land/lte",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"};"object"==typeof t&&"object"==typeof t.exports?t.exports=n:self.FantasyLand=n}()},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object Number]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}}])});

@@ -1,13 +0,22 @@

import { invoker, curry } from 'ramda';
import { curry } from 'ramda';
import isFunction from './isFunction';
var cata = invoker(2, 'cata');
var either = invoker(2, 'either');
/* eslint-disable max-len */
/**
* The catamorphism for either. If the either is right than the right function will be executed with
* the right value and the value of the function returned. Otherwise the left function
* will be called with the left value.
* The catamorphism is a way of folding a type into a value.
*
* **Either**
*
* If the either is right than the right function will be executed with
* the `right` value and the value of the function returned. Otherwise the left function
* will be called with the `left` value.
*
* **Maybe**
*
* If the maybe is Some than the right function will be executed with the `some` value and the value of the function
* returned. Otherwise the left function with be called without an argument.
*
*
*
* @func cata

@@ -17,6 +26,6 @@ * @memberOf RA

* @category Function
* @sig (a -> b) -> (a -> c) -> Either a -> b | c
* @sig (a -> b) -> (a -> c) -> Cata a -> b | c
* @param {Function} leftFn The left function that consumes the left value
* @param {Function} rightFn The right function that consumes the right value
* @param {Either} either Either monad with catamorphic capabilities (`cata` or `either` method)
* @param {Cata} catamorphicObj Either, Maybe or any other type with catamorphic capabilities (`cata` or `either` method)
* @return {*}

@@ -26,2 +35,3 @@ * @see {@link https://cwmyers.github.io/monet.js/#cata|cata explained}

*
* // Either
* const eitherR = Either.Right(1);

@@ -32,10 +42,18 @@ * const eitherL = Either.Left(2);

* RA.cata(identity, identity, eitherL); //=> 2
*
* // Maybe
* const maybeSome = Maybe.Some(1);
* const maybeNothing = Maybe.Nothing();
*
* RA.cata(identity, identity, maybeSome); //=> 1
* RA.cata(identity, identity, maybeNothing); //=> undefined
*/
/* eslint-enable */
var catamorphism = curry(function (leftFn, rightFn, catamorphicObj) {
if (isFunction(catamorphicObj.either)) {
return either(leftFn, rightFn, catamorphicObj);
if (isFunction(catamorphicObj.cata)) {
return catamorphicObj.cata(leftFn, rightFn);
}
return cata(leftFn, rightFn, catamorphicObj);
return catamorphicObj.either(leftFn, rightFn);
});
export default catamorphism;

@@ -22,8 +22,8 @@ // Type

import isNotFunction from './isNotFunction';
import isObject from './isObject';
import isNotObject from './isNotObject';
import isObjectLike from './isObjectLike';
import isNotObjectLike from './isNotObjectLike';
import isPlainObject from './isPlainObject';
import isNotPlainObject from './isNotPlainObject';
import isObj from './isObj';
import isNotObj from './isNotObj';
import isObjLike from './isObjLike';
import isNotObjLike from './isNotObjLike';
import isPlainObj from './isPlainObj';
import isNotPlainObj from './isNotPlainObj';
import isDate from './isDate';

@@ -41,2 +41,3 @@ import isNotDate from './isNotDate';

import stubUndefined from './stubUndefined';
import stubNull from './stubNull';
import noop from './noop';

@@ -53,2 +54,5 @@ import liftFN from './liftFN';

import paths from './paths';
import renameKeys from './renameKeys';
import renameKeysWith from './renameKeysWith';
import mergeRight from './mergeRight';

@@ -76,8 +80,14 @@ // Type

export { default as isNotFunction } from './isNotFunction';
export { default as isObject } from './isObject';
export { default as isNotObject } from './isNotObject';
export { default as isObjectLike } from './isObjectLike';
export { default as isNotObjectLike } from './isNotObjectLike';
export { default as isPlainObject } from './isPlainObject';
export { default as isNotPlainObject } from './isNotPlainObject';
export { default as isObj } from './isObj';
export { default as isObject } from './isObj'; // alias of isObject
export { default as isNotObj } from './isNotObj';
export { default as isNotObject } from './isNotObj'; // alias of isNotObj
export { default as isObjLike } from './isObjLike';
export { default as isObjectLike } from './isObjLike'; // alias of isObjLike
export { default as isNotObjLike } from './isNotObjLike';
export { default as isNotObjectLike } from './isNotObjLike'; // alias of isNotObjLike
export { default as isPlainObj } from './isPlainObj';
export { default as isPlainObject } from './isPlainObj';
export { default as isNotPlainObj } from './isNotPlainObj';
export { default as isNotPlainObject } from './isNotPlainObj'; // alias of isNotPlainObject
export { default as isDate } from './isDate';

@@ -95,2 +105,3 @@ export { default as isNotDate } from './isNotDate';

export { default as stubUndefined } from './stubUndefined';
export { default as stubNull } from './stubNull';
export { default as noop } from './noop';

@@ -107,2 +118,5 @@ export { default as liftFN } from './liftFN';

export { default as paths } from './paths';
export { default as renameKeys } from './renameKeys';
export { default as renameKeysWith } from './renameKeysWith';
export { default as mergeRight } from './mergeRight';

@@ -134,8 +148,14 @@ /**

isNotFunction: isNotFunction,
isObject: isObject,
isNotObject: isNotObject,
isObjectLike: isObjectLike,
isNotObjectLike: isNotObjectLike,
isPlainObject: isPlainObject,
isNotPlainObject: isNotPlainObject,
isObj: isObj,
isObject: isObj,
isNotObj: isNotObj,
isNotObject: isNotObj,
isObjLike: isObjLike,
isObjectLike: isObjLike,
isNotObjLike: isNotObjLike,
isNotObjectLike: isNotObjLike,
isPlainObj: isPlainObj,
isPlainObject: isPlainObj,
isNotPlainObj: isNotPlainObj,
isNotPlainObject: isNotPlainObj,
isDate: isDate,

@@ -153,2 +173,3 @@ isNotDate: isNotDate,

stubUndefined: stubUndefined,
stubNull: stubNull,
noop: noop,

@@ -164,5 +185,8 @@ liftFN: liftFN,

resetToDefault: resetToDefault,
paths: paths
paths: paths,
renameKeys: renameKeys,
renameKeysWith: renameKeysWith,
mergeRight: mergeRight
};
export default RA;

@@ -5,13 +5,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

import { applyTrait, functorTrait } from './traits';
import { aliases } from './util';
import { applyTrait, functorTrait, setoidTrait } from './traits';
var Identity = function () {
Identity.of = function of(value) {
Identity[fl.of] = function (value) {
return new Identity(value);
};
Identity[fl.of] = function (value) {
return Identity.of(value);
};
function Identity(value) {

@@ -23,16 +20,34 @@ _classCallCheck(this, Identity);

Identity.prototype.ap = function ap(applyWithFn) {
return applyTrait.ap.bind(this)(applyWithFn);
Identity.prototype.get = function get() {
return this.value;
};
Identity.prototype[fl.ap] = function (applyWithFn) {
return this.ap(applyWithFn);
Identity.prototype[fl.ap] = function () {
var _applyTrait$fl$ap;
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return (_applyTrait$fl$ap = applyTrait[fl.ap]).call.apply(_applyTrait$fl$ap, [this].concat(args));
};
Identity.prototype.map = function map(fn) {
return functorTrait.map.bind(this)(fn);
Identity.prototype[fl.map] = function () {
var _functorTrait$fl$map;
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
return (_functorTrait$fl$map = functorTrait[fl.map]).call.apply(_functorTrait$fl$map, [this].concat(args));
};
Identity.prototype[fl.map] = function (fn) {
return this.map(fn);
Identity.prototype[fl.equals] = function () {
var _setoidTrait$fl$equal;
for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
}
return (_setoidTrait$fl$equal = setoidTrait[fl.equals]).call.apply(_setoidTrait$fl$equal, [this].concat(args));
};

@@ -43,2 +58,16 @@

Identity.prototype['@@type'] = 'RA/Identity';
aliases(Identity).forEach(function (_ref) {
var alias = _ref[0],
fn = _ref[1];
Identity[alias] = fn;
});
aliases(Identity.prototype).forEach(function (_ref2) {
var alias = _ref2[0],
fn = _ref2[1];
Identity.prototype[alias] = fn;
});
export default Identity;

@@ -0,19 +1,24 @@

var _functorTrait, _applyTrait, _setoidTrait;
import fl from 'fantasy-land';
import { equals, path } from 'ramda';
export var functorTrait = {
map: function map(fn) {
return this.constructor.of(fn(this.value));
}
};
functorTrait[fl.map] = functorTrait.map;
export var functorTrait = (_functorTrait = {}, _functorTrait[fl.map] = function (fn) {
return this.constructor.of(fn(this.value));
}, _functorTrait);
export var applyTrait = {
ap: function ap(applyWithFn) {
var _this = this;
export var applyTrait = (_applyTrait = {}, _applyTrait[fl.ap] = function (applyWithFn) {
var _this = this;
return applyWithFn.map(function (fn) {
return fn(_this.value);
});
}
};
applyTrait[fl.ap] = applyTrait.ap;
return applyWithFn.map(function (fn) {
return fn(_this.value);
});
}, _applyTrait);
export var setoidTrait = (_setoidTrait = {}, _setoidTrait[fl.equals] = function (setoid) {
if (!equals(path(['@@type'], this), path(['@@type'], setoid))) {
return false;
} // not same type
return equals(this.value, setoid.value);
}, _setoidTrait);

@@ -1,20 +0,5 @@

import { curry, head, slice, reduce, ap as apR, curryN, map, add, flip } from 'ramda';
import { curry, head, slice, reduce, curryN, map } from 'ramda';
import Identity from './internal/fantasy-land/Identity';
import ap from './internal/ap';
var m1 = Identity.of(1);
var m2 = Identity.of(2).map(add);
export var createAp = function createAp(ap1, ap2) {
try {
// new version of `ap` starting from ramda version > 0.23.0
return ap1.ap(ap2) && apR;
} catch (e) {
// old version of `ap` till ramda version <= 0.23.0
return curryN(2, flip(apR));
}
};
var ap = createAp(m2, m1);
/**

@@ -21,0 +6,0 @@ * "lifts" a function to be the specified arity, so that it may "map over" objects that satisfy

import { always } from 'ramda';
/**
* A function that returns undefined.
* A function that returns `undefined`.
*

@@ -6,0 +6,0 @@ * @func stubUndefined

@@ -13,10 +13,19 @@ 'use strict';

var cata = (0, _ramda.invoker)(2, 'cata');
var either = (0, _ramda.invoker)(2, 'either');
/* eslint-disable max-len */
/**
* The catamorphism for either. If the either is right than the right function will be executed with
* the right value and the value of the function returned. Otherwise the left function
* will be called with the left value.
* The catamorphism is a way of folding a type into a value.
*
* **Either**
*
* If the either is right than the right function will be executed with
* the `right` value and the value of the function returned. Otherwise the left function
* will be called with the `left` value.
*
* **Maybe**
*
* If the maybe is Some than the right function will be executed with the `some` value and the value of the function
* returned. Otherwise the left function with be called without an argument.
*
*
*
* @func cata

@@ -26,6 +35,6 @@ * @memberOf RA

* @category Function
* @sig (a -> b) -> (a -> c) -> Either a -> b | c
* @sig (a -> b) -> (a -> c) -> Cata a -> b | c
* @param {Function} leftFn The left function that consumes the left value
* @param {Function} rightFn The right function that consumes the right value
* @param {Either} either Either monad with catamorphic capabilities (`cata` or `either` method)
* @param {Cata} catamorphicObj Either, Maybe or any other type with catamorphic capabilities (`cata` or `either` method)
* @return {*}

@@ -35,2 +44,3 @@ * @see {@link https://cwmyers.github.io/monet.js/#cata|cata explained}

*
* // Either
* const eitherR = Either.Right(1);

@@ -41,10 +51,18 @@ * const eitherL = Either.Left(2);

* RA.cata(identity, identity, eitherL); //=> 2
*
* // Maybe
* const maybeSome = Maybe.Some(1);
* const maybeNothing = Maybe.Nothing();
*
* RA.cata(identity, identity, maybeSome); //=> 1
* RA.cata(identity, identity, maybeNothing); //=> undefined
*/
/* eslint-enable */
var catamorphism = (0, _ramda.curry)(function (leftFn, rightFn, catamorphicObj) {
if ((0, _isFunction2.default)(catamorphicObj.either)) {
return either(leftFn, rightFn, catamorphicObj);
if ((0, _isFunction2.default)(catamorphicObj.cata)) {
return catamorphicObj.cata(leftFn, rightFn);
}
return cata(leftFn, rightFn, catamorphicObj);
return catamorphicObj.either(leftFn, rightFn);
});
exports.default = catamorphism;
'use strict';
exports.__esModule = true;
exports.paths = exports.resetToDefault = exports.defaults = exports.list = exports.pickIndexes = exports.cata = exports.liftF = exports.liftFN = exports.noop = exports.stubUndefined = exports.isNotInteger = exports.isInteger = exports.isNotFinite = exports.isFinite = exports.isNotNaN = exports.isNaN = exports.isNotNumber = exports.isNumber = exports.isNotDate = exports.isDate = exports.isNotPlainObject = exports.isPlainObject = exports.isNotObjectLike = exports.isObjectLike = exports.isNotObject = exports.isObject = exports.isNotFunction = exports.isFunction = exports.isNotAsyncFunction = exports.isAsyncFunction = exports.isNotGeneratorFunction = exports.isGeneratorFunction = exports.isNotArrayLike = exports.isNotString = exports.isString = exports.isNilOrEmpty = exports.isNotEmpty = exports.isNotBoolean = exports.isBoolean = exports.isNotArray = exports.isArray = exports.isNotNil = exports.isNotNull = exports.isNull = exports.isUndefined = exports.isNotUndefined = undefined;
exports.mergeRight = exports.renameKeysWith = exports.renameKeys = exports.paths = exports.resetToDefault = exports.defaults = exports.list = exports.pickIndexes = exports.cata = exports.liftF = exports.liftFN = exports.noop = exports.stubNull = exports.stubUndefined = exports.isNotInteger = exports.isInteger = exports.isNotFinite = exports.isFinite = exports.isNotNaN = exports.isNaN = exports.isNotNumber = exports.isNumber = exports.isNotDate = exports.isDate = exports.isNotPlainObject = exports.isNotPlainObj = exports.isPlainObject = exports.isPlainObj = exports.isNotObjectLike = exports.isNotObjLike = exports.isObjectLike = exports.isObjLike = exports.isNotObject = exports.isNotObj = exports.isObject = exports.isObj = exports.isNotFunction = exports.isFunction = exports.isNotAsyncFunction = exports.isAsyncFunction = exports.isNotGeneratorFunction = exports.isGeneratorFunction = exports.isNotArrayLike = exports.isNotString = exports.isString = exports.isNilOrEmpty = exports.isNotEmpty = exports.isNotBoolean = exports.isBoolean = exports.isNotArray = exports.isArray = exports.isNotNil = exports.isNotNull = exports.isNull = exports.isUndefined = exports.isNotUndefined = undefined;

@@ -186,53 +186,89 @@ var _isNotUndefined = require('./isNotUndefined');

var _isObject = require('./isObject');
var _isObj = require('./isObj');
Object.defineProperty(exports, 'isObj', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isObj).default;
}
});
Object.defineProperty(exports, 'isObject', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isObject).default;
return _interopRequireDefault(_isObj).default;
}
});
var _isNotObject = require('./isNotObject');
var _isNotObj = require('./isNotObj');
Object.defineProperty(exports, 'isNotObj', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isNotObj).default;
}
});
Object.defineProperty(exports, 'isNotObject', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isNotObject).default;
return _interopRequireDefault(_isNotObj).default;
}
});
var _isObjectLike = require('./isObjectLike');
var _isObjLike = require('./isObjLike');
Object.defineProperty(exports, 'isObjLike', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isObjLike).default;
}
});
Object.defineProperty(exports, 'isObjectLike', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isObjectLike).default;
return _interopRequireDefault(_isObjLike).default;
}
});
var _isNotObjectLike = require('./isNotObjectLike');
var _isNotObjLike = require('./isNotObjLike');
Object.defineProperty(exports, 'isNotObjLike', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isNotObjLike).default;
}
});
Object.defineProperty(exports, 'isNotObjectLike', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isNotObjectLike).default;
return _interopRequireDefault(_isNotObjLike).default;
}
});
var _isPlainObject = require('./isPlainObject');
var _isPlainObj = require('./isPlainObj');
Object.defineProperty(exports, 'isPlainObj', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isPlainObj).default;
}
});
Object.defineProperty(exports, 'isPlainObject', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isPlainObject).default;
return _interopRequireDefault(_isPlainObj).default;
}
});
var _isNotPlainObject = require('./isNotPlainObject');
var _isNotPlainObj = require('./isNotPlainObj');
Object.defineProperty(exports, 'isNotPlainObj', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isNotPlainObj).default;
}
});
Object.defineProperty(exports, 'isNotPlainObject', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_isNotPlainObject).default;
return _interopRequireDefault(_isNotPlainObj).default;
}

@@ -340,2 +376,11 @@ });

var _stubNull = require('./stubNull');
Object.defineProperty(exports, 'stubNull', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_stubNull).default;
}
});
var _noop = require('./noop');

@@ -422,2 +467,29 @@

var _renameKeys = require('./renameKeys');
Object.defineProperty(exports, 'renameKeys', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_renameKeys).default;
}
});
var _renameKeysWith = require('./renameKeysWith');
Object.defineProperty(exports, 'renameKeysWith', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_renameKeysWith).default;
}
});
var _mergeRight = require('./mergeRight');
Object.defineProperty(exports, 'mergeRight', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_mergeRight).default;
}
});
var _isNotUndefined2 = _interopRequireDefault(_isNotUndefined);

@@ -463,13 +535,13 @@

var _isObject2 = _interopRequireDefault(_isObject);
var _isObj2 = _interopRequireDefault(_isObj);
var _isNotObject2 = _interopRequireDefault(_isNotObject);
var _isNotObj2 = _interopRequireDefault(_isNotObj);
var _isObjectLike2 = _interopRequireDefault(_isObjectLike);
var _isObjLike2 = _interopRequireDefault(_isObjLike);
var _isNotObjectLike2 = _interopRequireDefault(_isNotObjectLike);
var _isNotObjLike2 = _interopRequireDefault(_isNotObjLike);
var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
var _isPlainObj2 = _interopRequireDefault(_isPlainObj);
var _isNotPlainObject2 = _interopRequireDefault(_isNotPlainObject);
var _isNotPlainObj2 = _interopRequireDefault(_isNotPlainObj);

@@ -498,2 +570,4 @@ var _isDate2 = _interopRequireDefault(_isDate);

var _stubNull2 = _interopRequireDefault(_stubNull);
var _noop2 = _interopRequireDefault(_noop);

@@ -517,2 +591,8 @@

var _renameKeys2 = _interopRequireDefault(_renameKeys);
var _renameKeysWith2 = _interopRequireDefault(_renameKeysWith);
var _mergeRight2 = _interopRequireDefault(_mergeRight);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -545,8 +625,14 @@

isNotFunction: _isNotFunction2.default,
isObject: _isObject2.default,
isNotObject: _isNotObject2.default,
isObjectLike: _isObjectLike2.default,
isNotObjectLike: _isNotObjectLike2.default,
isPlainObject: _isPlainObject2.default,
isNotPlainObject: _isNotPlainObject2.default,
isObj: _isObj2.default,
isObject: _isObj2.default,
isNotObj: _isNotObj2.default,
isNotObject: _isNotObj2.default,
isObjLike: _isObjLike2.default,
isObjectLike: _isObjLike2.default,
isNotObjLike: _isNotObjLike2.default,
isNotObjectLike: _isNotObjLike2.default,
isPlainObj: _isPlainObj2.default,
isPlainObject: _isPlainObj2.default,
isNotPlainObj: _isNotPlainObj2.default,
isNotPlainObject: _isNotPlainObj2.default,
isDate: _isDate2.default,

@@ -564,2 +650,3 @@ isNotDate: _isNotDate2.default,

stubUndefined: _stubUndefined2.default,
stubNull: _stubNull2.default,
noop: _noop2.default,

@@ -575,5 +662,8 @@ liftFN: _liftFN2.default,

resetToDefault: _resetToDefault2.default,
paths: _paths2.default
paths: _paths2.default,
renameKeys: _renameKeys2.default,
renameKeysWith: _renameKeysWith2.default,
mergeRight: _mergeRight2.default
};
exports.default = RA;

@@ -9,2 +9,4 @@ 'use strict';

var _util = require('./util');
var _traits = require('./traits');

@@ -17,10 +19,6 @@

var Identity = function () {
Identity.of = function of(value) {
Identity[_fantasyLand2.default.of] = function (value) {
return new Identity(value);
};
Identity[_fantasyLand2.default.of] = function (value) {
return Identity.of(value);
};
function Identity(value) {

@@ -32,16 +30,34 @@ _classCallCheck(this, Identity);

Identity.prototype.ap = function ap(applyWithFn) {
return _traits.applyTrait.ap.bind(this)(applyWithFn);
Identity.prototype.get = function get() {
return this.value;
};
Identity.prototype[_fantasyLand2.default.ap] = function (applyWithFn) {
return this.ap(applyWithFn);
Identity.prototype[_fantasyLand2.default.ap] = function () {
var _applyTrait$fl$ap;
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return (_applyTrait$fl$ap = _traits.applyTrait[_fantasyLand2.default.ap]).call.apply(_applyTrait$fl$ap, [this].concat(args));
};
Identity.prototype.map = function map(fn) {
return _traits.functorTrait.map.bind(this)(fn);
Identity.prototype[_fantasyLand2.default.map] = function () {
var _functorTrait$fl$map;
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
return (_functorTrait$fl$map = _traits.functorTrait[_fantasyLand2.default.map]).call.apply(_functorTrait$fl$map, [this].concat(args));
};
Identity.prototype[_fantasyLand2.default.map] = function (fn) {
return this.map(fn);
Identity.prototype[_fantasyLand2.default.equals] = function () {
var _setoidTrait$fl$equal;
for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
}
return (_setoidTrait$fl$equal = _traits.setoidTrait[_fantasyLand2.default.equals]).call.apply(_setoidTrait$fl$equal, [this].concat(args));
};

@@ -52,2 +68,16 @@

Identity.prototype['@@type'] = 'RA/Identity';
(0, _util.aliases)(Identity).forEach(function (_ref) {
var alias = _ref[0],
fn = _ref[1];
Identity[alias] = fn;
});
(0, _util.aliases)(Identity.prototype).forEach(function (_ref2) {
var alias = _ref2[0],
fn = _ref2[1];
Identity.prototype[alias] = fn;
});
exports.default = Identity;
'use strict';
exports.__esModule = true;
exports.applyTrait = exports.functorTrait = undefined;
exports.setoidTrait = exports.applyTrait = exports.functorTrait = undefined;
var _functorTrait, _applyTrait, _setoidTrait;
var _fantasyLand = require('fantasy-land');

@@ -10,20 +12,24 @@

var _ramda = require('ramda');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var functorTrait = exports.functorTrait = {
map: function map(fn) {
return this.constructor.of(fn(this.value));
}
};
functorTrait[_fantasyLand2.default.map] = functorTrait.map;
var functorTrait = exports.functorTrait = (_functorTrait = {}, _functorTrait[_fantasyLand2.default.map] = function (fn) {
return this.constructor.of(fn(this.value));
}, _functorTrait);
var applyTrait = exports.applyTrait = {
ap: function ap(applyWithFn) {
var _this = this;
var applyTrait = exports.applyTrait = (_applyTrait = {}, _applyTrait[_fantasyLand2.default.ap] = function (applyWithFn) {
var _this = this;
return applyWithFn.map(function (fn) {
return fn(_this.value);
});
}
};
applyTrait[_fantasyLand2.default.ap] = applyTrait.ap;
return applyWithFn.map(function (fn) {
return fn(_this.value);
});
}, _applyTrait);
var setoidTrait = exports.setoidTrait = (_setoidTrait = {}, _setoidTrait[_fantasyLand2.default.equals] = function (setoid) {
if (!(0, _ramda.equals)((0, _ramda.path)(['@@type'], this), (0, _ramda.path)(['@@type'], setoid))) {
return false;
} // not same type
return (0, _ramda.equals)(this.value, setoid.value);
}, _setoidTrait);
'use strict';
exports.__esModule = true;
exports.createAp = undefined;
var _ramda = require('ramda');
var _Identity = require('./internal/fantasy-land/Identity');
var _ap = require('./internal/ap');
var _Identity2 = _interopRequireDefault(_Identity);
var _ap2 = _interopRequireDefault(_ap);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var m1 = _Identity2.default.of(1);
var m2 = _Identity2.default.of(2).map(_ramda.add);
var createAp = exports.createAp = function createAp(ap1, ap2) {
try {
// new version of `ap` starting from ramda version > 0.23.0
return ap1.ap(ap2) && _ramda.ap;
} catch (e) {
// old version of `ap` till ramda version <= 0.23.0
return (0, _ramda.curryN)(2, (0, _ramda.flip)(_ramda.ap));
}
};
var ap = createAp(m2, m1);
/**

@@ -69,3 +53,3 @@ * "lifts" a function to be the specified arity, so that it may "map over" objects that satisfy

var apps = (0, _ramda.slice)(1, Infinity, args);
return (0, _ramda.reduce)(ap, accumulator, apps);
return (0, _ramda.reduce)(_ap2.default, accumulator, apps);
});

@@ -72,0 +56,0 @@ });

@@ -8,3 +8,3 @@ 'use strict';

/**
* A function that returns undefined.
* A function that returns `undefined`.
*

@@ -11,0 +11,0 @@ * @func stubUndefined

@@ -7,3 +7,3 @@ {

"keywords": "ramda extensions addons cookbook adjunct recipe extras",
"version": "1.5.0",
"version": "1.6.0",
"homepage": "https://github.com/char0n/ramda-adjunct",

@@ -87,3 +87,3 @@ "license": "SEE LICENSE IN LICENSE.md",

"cross-env": "=4.0.0",
"docdash": "git+https://github.com/char0n/docdash.git#b5c18fb07f07e5600227ef2611b3540866c4ba33",
"docdash": "git+https://github.com/char0n/docdash.git#650ac9b53bad63e866c39678462bac5f5f721794",
"eslint": "=3.19.0",

@@ -105,2 +105,3 @@ "eslint-config-airbnb": "=14.1.0",

"rimraf": "=2.6.1",
"sinon": "=2.2.0",
"testem": "=1.15.0",

@@ -107,0 +108,0 @@ "typescript": "=2.2.2",

@@ -76,3 +76,3 @@ [![CircleCI](https://circleci.com/gh/char0n/ramda-adjunct.svg?style=svg)](https://circleci.com/gh/char0n/ramda-adjunct)

[1.4.0](https://char0n.github.io/ramda-adjunct/1.4.0), [1.5.0](https://char0n.github.io/ramda-adjunct/1.5.0),
[LATEST](https://char0n.github.io/ramda-adjunct)
[1.6.0](https://char0n.github.io/ramda-adjunct/1.6.0), [LATEST](https://char0n.github.io/ramda-adjunct)

@@ -79,0 +79,0 @@ ## Development

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

import { invoker, curry } from 'ramda';
import { curry } from 'ramda';

@@ -6,10 +6,19 @@ import isFunction from './isFunction';

const cata = invoker(2, 'cata');
const either = invoker(2, 'either');
/* eslint-disable max-len */
/**
* The catamorphism for either. If the either is right than the right function will be executed with
* the right value and the value of the function returned. Otherwise the left function
* will be called with the left value.
* The catamorphism is a way of folding a type into a value.
*
* **Either**
*
* If the either is right than the right function will be executed with
* the `right` value and the value of the function returned. Otherwise the left function
* will be called with the `left` value.
*
* **Maybe**
*
* If the maybe is Some than the right function will be executed with the `some` value and the value of the function
* returned. Otherwise the left function with be called without an argument.
*
*
*
* @func cata

@@ -19,6 +28,6 @@ * @memberOf RA

* @category Function
* @sig (a -> b) -> (a -> c) -> Either a -> b | c
* @sig (a -> b) -> (a -> c) -> Cata a -> b | c
* @param {Function} leftFn The left function that consumes the left value
* @param {Function} rightFn The right function that consumes the right value
* @param {Either} either Either monad with catamorphic capabilities (`cata` or `either` method)
* @param {Cata} catamorphicObj Either, Maybe or any other type with catamorphic capabilities (`cata` or `either` method)
* @return {*}

@@ -28,2 +37,3 @@ * @see {@link https://cwmyers.github.io/monet.js/#cata|cata explained}

*
* // Either
* const eitherR = Either.Right(1);

@@ -34,10 +44,18 @@ * const eitherL = Either.Left(2);

* RA.cata(identity, identity, eitherL); //=> 2
*
* // Maybe
* const maybeSome = Maybe.Some(1);
* const maybeNothing = Maybe.Nothing();
*
* RA.cata(identity, identity, maybeSome); //=> 1
* RA.cata(identity, identity, maybeNothing); //=> undefined
*/
/* eslint-enable */
const catamorphism = curry((leftFn, rightFn, catamorphicObj) => {
if (isFunction(catamorphicObj.either)) {
return either(leftFn, rightFn, catamorphicObj);
if (isFunction(catamorphicObj.cata)) {
return catamorphicObj.cata(leftFn, rightFn);
}
return cata(leftFn, rightFn, catamorphicObj);
return catamorphicObj.either(leftFn, rightFn);
});
export default catamorphism;

@@ -125,2 +125,3 @@ declare var RA: RamdaAdjunct.Static;

*/
isObj(val: any): val is Object;
isObject(val: any): val is Object;

@@ -131,3 +132,4 @@

*/
isNotObject(val: any): boolean;
isNotObj(val: any): boolean;
isNotObject(val: any): boolean; // alias

@@ -137,3 +139,4 @@ /**

*/
isObjectLike(val: any): boolean;
isObjLike(val: any): boolean;
isObjectLike(val: any): boolean; // alias

@@ -143,3 +146,4 @@ /**

*/
isNotObjectLike(val: any): boolean;
isNotObjLike(val: any): boolean;
isNotObjectLike(val: any): boolean; // alias

@@ -149,3 +153,4 @@ /**

*/
isPlainObject(val: any): boolean;
isPlainObj(val: any): boolean;
isPlainObject(val: any): boolean; // alias

@@ -155,3 +160,4 @@ /**

*/
isNotPlainObject(val: any): boolean;
isNotPlainObj(val: any): boolean;
isNotPlainObject(val: any): boolean; // alias

@@ -210,3 +216,3 @@ /**

/**
* A function that returns undefined.
* A function that returns `undefined`.
*/

@@ -216,2 +222,7 @@ stubUndefined(): undefined;

/**
* A function that returns `null`.
*/
stubNull(): null;
/**
* A function that performs no operations.

@@ -236,16 +247,10 @@ */

*/
defaults(defaultOptions: Object, options: Object): Object
defaults(defaultOptions: Object): (options: Object) => Object
defaults(defaultOptions: Object, options: Object): Object;
defaults(defaultOptions: Object): (options: Object) => Object;
/**
* Reset properties of the object to their default values.
*/
resetToDefault(defaultOptions: Object, options: Object): Object
resetToDefault(defaultOptions: Object): (options: Object) => Object
/**
* Acts as multiple path: arrays of paths in, array of values out. Preserves order.
*/
paths(ps: Array<Array<string | number>>, obj: Object): Array<any>
paths(ps: Array<Array<string | number>>): (obj: Object) => Array<any>
paths(ps: Array<Array<string | number>>, obj: Object): Array<any>;
paths(ps: Array<Array<string | number>>): (obj: Object) => Array<any>;

@@ -256,3 +261,3 @@ /**

*/
liftFN<T>(arity: number, fn: Variadic<Apply<T>, T>): Apply<T>
liftFN<T>(arity: number, fn: Variadic<Apply<T>, T>): Apply<T>;

@@ -263,3 +268,3 @@ /**

*/
liftF<T>(fn: Variadic<Apply<T>, T>): Apply<T>
liftF<T>(fn: Variadic<Apply<T>, T>): Apply<T>;

@@ -280,3 +285,3 @@ /**

}
}
};

@@ -288,4 +293,4 @@ /**

*/
renameKeys(keysMap: Object, obj: Object): Object
renameKeys(keysMap: Object): (obj: Object) => Object
renameKeys(keysMap: Object, obj: Object): Object;
renameKeys(keysMap: Object): (obj: Object) => Object;

@@ -296,4 +301,18 @@ /**

*/
renameKeysWith(renameFn: (key: any) => any, obj: Object): Object
renameKeysWith(renameFn: (key: any) => any): (obj: Object) => Object
renameKeysWith(renameFn: (key: any) => any, obj: Object): Object;
renameKeysWith(renameFn: (key: any) => any): (obj: Object) => Object;
/**
* Create a new object with the own properties of the second object merged with
* the own properties of the first object. If a key exists in both objects,
* the value from the first object will be used.
*/
mergeRight(source: Object, destination: Object): Object;
mergeRight(source: Object): (destination: Object) => Object;
/**
* Reset properties of the object to their default values.
*/
resetToDefault(defaultOptions: Object, options: Object): Object; // alias of mergeRight
resetToDefault(defaultOptions: Object): (options: Object) => Object; // alias of mergeRight
}

@@ -300,0 +319,0 @@

@@ -22,8 +22,8 @@ // Type

import isNotFunction from './isNotFunction';
import isObject from './isObject';
import isNotObject from './isNotObject';
import isObjectLike from './isObjectLike';
import isNotObjectLike from './isNotObjectLike';
import isPlainObject from './isPlainObject';
import isNotPlainObject from './isNotPlainObject';
import isObj from './isObj';
import isNotObj from './isNotObj';
import isObjLike from './isObjLike';
import isNotObjLike from './isNotObjLike';
import isPlainObj from './isPlainObj';
import isNotPlainObj from './isNotPlainObj';
import isDate from './isDate';

@@ -41,2 +41,3 @@ import isNotDate from './isNotDate';

import stubUndefined from './stubUndefined';
import stubNull from './stubNull';
import noop from './noop';

@@ -51,6 +52,6 @@ import liftFN from './liftFN';

import defaults from './defaults';
import resetToDefault from './resetToDefault';
import paths from './paths';
import renameKeys from './renameKeys';
import renameKeysWith from './renameKeysWith';
import mergeRight from './mergeRight';

@@ -78,8 +79,14 @@ // Type

export { default as isNotFunction } from './isNotFunction';
export { default as isObject } from './isObject';
export { default as isNotObject } from './isNotObject';
export { default as isObjectLike } from './isObjectLike';
export { default as isNotObjectLike } from './isNotObjectLike';
export { default as isPlainObject } from './isPlainObject';
export { default as isNotPlainObject } from './isNotPlainObject';
export { default as isObj } from './isObj';
export { default as isObject } from './isObj'; // alias of isObject
export { default as isNotObj } from './isNotObj';
export { default as isNotObject } from './isNotObj'; // alias of isNotObj
export { default as isObjLike } from './isObjLike';
export { default as isObjectLike } from './isObjLike'; // alias of isObjLike
export { default as isNotObjLike } from './isNotObjLike';
export { default as isNotObjectLike } from './isNotObjLike'; // alias of isNotObjLike
export { default as isPlainObj } from './isPlainObj';
export { default as isPlainObject } from './isPlainObj';
export { default as isNotPlainObj } from './isNotPlainObj';
export { default as isNotPlainObject } from './isNotPlainObj'; // alias of isNotPlainObject
export { default as isDate } from './isDate';

@@ -97,2 +104,3 @@ export { default as isNotDate } from './isNotDate';

export { default as stubUndefined } from './stubUndefined';
export { default as stubNull } from './stubNull';
export { default as noop } from './noop';

@@ -107,6 +115,7 @@ export { default as liftFN } from './liftFN';

export { default as defaults } from './defaults';
export { default as resetToDefault } from './resetToDefault';
export { default as paths } from './paths';
export { default as renameKeys } from './renameKeys';
export { default as renameKeysWith } from './renameKeysWith';
export { default as mergeRight } from './mergeRight';
export { default as resetToDefault } from './mergeRight';

@@ -138,8 +147,14 @@ /**

isNotFunction,
isObject,
isNotObject,
isObjectLike,
isNotObjectLike,
isPlainObject,
isNotPlainObject,
isObj,
isObject: isObj,
isNotObj,
isNotObject: isNotObj,
isObjLike,
isObjectLike: isObjLike,
isNotObjLike,
isNotObjectLike: isNotObjLike,
isPlainObj,
isPlainObject: isPlainObj,
isNotPlainObj,
isNotPlainObject: isNotPlainObj,
isDate,

@@ -157,2 +172,3 @@ isNotDate,

stubUndefined,
stubNull,
noop,

@@ -167,8 +183,9 @@ liftFN,

defaults,
resetToDefault,
resetToDefault: mergeRight,
paths,
renameKeys,
renameKeysWith,
mergeRight,
};
export default RA;
import fl from 'fantasy-land';
import { applyTrait, functorTrait } from './traits';
import { aliases } from './util';
import { applyTrait, functorTrait, setoidTrait } from './traits';
class Identity {
static of(value) {
static [fl.of](value) {
return new Identity(value);
}
static [fl.of](value) {
return Identity.of(value);
}
constructor(value) {

@@ -19,19 +16,27 @@ this.value = value;

ap(applyWithFn) {
return applyTrait.ap.bind(this)(applyWithFn);
get() {
return this.value;
}
[fl.ap](applyWithFn) {
return this.ap(applyWithFn);
[fl.ap](...args) {
return applyTrait[fl.ap].call(this, ...args);
}
map(fn) {
return functorTrait.map.bind(this)(fn);
[fl.map](...args) {
return functorTrait[fl.map].call(this, ...args);
}
[fl.map](fn) {
return this.map(fn);
[fl.equals](...args) {
return setoidTrait[fl.equals].call(this, ...args);
}
}
Identity.prototype['@@type'] = 'RA/Identity';
aliases(Identity).forEach(([alias, fn]) => {
Identity[alias] = fn;
});
aliases(Identity.prototype).forEach(([alias, fn]) => {
Identity.prototype[alias] = fn;
});
export default Identity;
import fl from 'fantasy-land';
import { equals, path } from 'ramda';
export const functorTrait = {
map(fn) {
[fl.map](fn) {
return this.constructor.of(fn(this.value));
},
};
functorTrait[fl.map] = functorTrait.map;
export const applyTrait = {
ap(applyWithFn) {
[fl.ap](applyWithFn) {
return applyWithFn.map(fn => fn(this.value));
},
};
applyTrait[fl.ap] = applyTrait.ap;
export const setoidTrait = {
[fl.equals](setoid) {
if (!equals(path(['@@type'], this), path(['@@type'], setoid))) { return false } // not same type
return equals(this.value, setoid.value);
},
};

@@ -19,3 +19,3 @@ import { curry, reduce, assoc, keys, has } from 'ramda';

* @return {!Object} New object with renamed keys
* @see {@link RA.renameKeysWith|renameKeysWith}
* @see {@link https://github.com/ramda/ramda/wiki/Cookbook#rename-keys-of-an-object|Ramda Cookbook}, {@link RA.renameKeysWith|renameKeysWith}
* @example

@@ -22,0 +22,0 @@ *

@@ -18,3 +18,3 @@ import { curry, toPairs, pipe, map, adjust, fromPairs } from 'ramda';

* @return {!Object} New object with renamed keys
* @see {@link RA.renameKeys|renameKeys}
* @see {@link https://github.com/ramda/ramda/wiki/Cookbook#rename-keys-of-an-object-by-a-function|Ramda Cookbook}, {@link RA.renameKeys|renameKeys}
* @example

@@ -21,0 +21,0 @@ *

import { always } from 'ramda';
/**
* A function that returns undefined.
* A function that returns `undefined`.
*

@@ -6,0 +6,0 @@ * @func stubUndefined

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc