All files mayre.min.js

100% Statements 18/18
92% Branches 23/25
100% Functions 5/5
100% Lines 1/1
1 2 330x    
"use strict";const{cloneElement}=require("react"),e=require("prop-types"),n=e=>{return e&&"[object Function]"==={}.toString.call(e)},o=(e,n=false)=>{return"object"==typeof e&&e.hasOwnProperty("length")===n},t=e=>{return o(e)?e:o(e,!0)&&o(e[0])?Object.entries(e[0]).reduce((n,[o,t])=>{const r=e.includes(o)?{[o]:t}:{};return Object.assign({},n,r)},{}):{}},r=module.exports=(e=>{const o=n(e.when)?e.when():e.when,r=t(e.with),c=n(e.of)?e.of(r):e.of,u=e.orWith?t(e.orWith):r,i=n(e.or)?e.or(u):e.or;return o?cloneElement(c,r):i&&cloneElement(i,u)});r.defaultProps={or:null,with:{}},r.propTypes={of:e.oneOfType([e.element,e.func]).isRequired,or:e.oneOfType([e.element,e.func]),orWith:e.oneOfType([e.array,e.object]),when:e.oneOfType([e.bool,e.func]),with:e.oneOfType([e.array,e.object])};
//# sourceMappingURL=mayre.min.js.map