Comparing version 0.1.0 to 0.2.0
@@ -0,0 +0,0 @@ # Contributor Covenant Code of Conduct |
@@ -0,0 +0,0 @@ # Contributing |
@@ -0,0 +0,0 @@ # VERSION NUMBER |
@@ -1,1 +0,1 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.add=e()}(this,function(){"use strict";return function o(r){for(var n=arguments.length,f=new Array(1<n?n-1:0),e=1;e<n;e++)f[e-1]=arguments[e];return r.length<=f.length?r.apply(void 0,f):function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return o.apply(void 0,[r].concat(f,e))}}(function(n,e){return n+e})}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.add=n()}(this,function(){"use strict";return function r(o){for(var e=arguments.length,u=new Array(1<e?e-1:0),n=1;n<e;n++)u[n-1]=arguments[n];return o.length<=u.length?o.apply(void 0,u):function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r.apply(void 0,[o].concat(u,n))}}(function(e,n){return Number(e)+Number(n)})}); |
# Changelog | ||
## v0.1.0 (Unreleased) | ||
## v0.2.0 | ||
### BREAKING CHANGES | ||
### New | ||
- Added `ascend` function which can be used with sort for ascending order | ||
- Added `descend` function which can be used with sort for descending order | ||
- Added `both` function which accepts 2 functions and a value, returns true if both functions pass, otherwise returns false | ||
### Improved | ||
- Added ability to handle string numbers to `add` function | ||
## v0.1.0 | ||
### BREAKING CHANGES (If converting from dusty-fns) | ||
- `fuzzySearch` params have been swapped, so now its `fuzzySearch(needle, haystack)` instead | ||
@@ -8,0 +20,0 @@ - Renamed `removeAt` to just `remove` |
@@ -23,3 +23,3 @@ (function (global, factory) { | ||
var add = function add(a, b) { | ||
return a + b; | ||
return Number(a) + Number(b); | ||
}; | ||
@@ -40,2 +40,7 @@ var add$1 = curry(add); | ||
var ascend = function ascend(a, b) { | ||
return a < b ? -1 : a > b ? 1 : 0; | ||
}; | ||
var ascend$1 = curry(ascend); | ||
var has = function has(prop, obj) { | ||
@@ -60,2 +65,7 @@ return Object.prototype.hasOwnProperty.call(obj, prop); | ||
var both = function both(f, g, a) { | ||
return f(a) && g(a); | ||
}; | ||
var both$1 = curry(both); | ||
var capitalize = function capitalize(str) { | ||
@@ -140,2 +150,7 @@ return str.charAt(0).toUpperCase() + str.slice(1); | ||
var descend = function descend(a, b) { | ||
return a > b ? -1 : a < b ? 1 : 0; | ||
}; | ||
var descend$1 = curry(descend); | ||
var difference = function difference(first, second) { | ||
@@ -781,3 +796,5 @@ return first.filter(function (x) { | ||
exports.any = any$1; | ||
exports.ascend = ascend$1; | ||
exports.assign = assign; | ||
exports.both = both$1; | ||
exports.capitalize = capitalize; | ||
@@ -794,2 +811,3 @@ exports.compact = compact; | ||
exports.defaults = defaults$1; | ||
exports.descend = descend$1; | ||
exports.difference = difference$1; | ||
@@ -796,0 +814,0 @@ exports.div = div$1; |
@@ -1,1 +0,1 @@ | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.kyanite={})}(this,function(n){"use strict";var r=function e(u){for(var n=arguments.length,o=new Array(1<n?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return u.length<=o.length?u.apply(void 0,o):function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.apply(void 0,[u].concat(o,r))}},t=r(function(n,r){return n+r}),e=r(function(n,r){return n&&r}),u=r(function(r,t){return Object.keys(r).some(function(n){return r[n](t[n])})}),o=r(function(n,r){return Object.prototype.hasOwnProperty.call(r,n)}),i=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduce(function(n,r){for(var t in r)o(t,r)&&(n[t]=r[t]);return n},{})},c=function(n){return!n},f=r(function(n,r){return c(n(r))}),a=function(n){return null==n},l=function(n){return n.reduce(function(n,r){return n.concat(r)},[])},s=r(function(t,n){return n.reduce(function(n,r){return n.concat(t(r))},[])}),p=r(function(n,r){return-1!==r.indexOf(n)}),y=function e(u,o){for(var n=arguments.length,i=new Array(2<n?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return u<=0?o.apply(void 0,i):function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.apply(void 0,[u-r.length,o].concat(i,r))}},d=r(function(t,n){return Object.keys(t).reduce(function(n,r){return null==n[r]&&(n[r]=t[r]),n},n)}),h=r(function(n,r){return n.filter(function(n){return-1===r.indexOf(n)})}),v=r(function(n,r){return n/r}),g=function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)},m=function(n){return Array.isArray(n)?n:a(n)?[]:[n]},b=r(function(n,r){return r.every(n)}),O=r(function(n,r){return r.filter(n)}),j=r(function(n,r){for(var t=0,e=r.length;t<e;){if(n(r[t]))return r[t];t+=1}return!1}),A=function(n){return n[0]},k=function(n,r,t){for(var e=n,u=r.length;e<u;)if(r.charCodeAt(e++)===t)return!0;return!1},x=r(function(n,r){var t=r.length,e=n.length;return!(t<e)&&(e===t?n===r:function(n,r){for(var t=r.length,e=0;e<t;e++)if(!k(0,n,r.charCodeAt(e)))return!1;return!0}(r,n))}),w=r(function n(r,t){return t?n(t,r%t):r}),S=r(function(n,r){return n.map(function(n){return r[n]})}),N=r(function(n,r){return r<n}),C=r(function(n,r){return r<=n}),E=r(function(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}),M=function(n){return n},U=r(function(n,r){return-1!==r.indexOf(n)}),B=r(function(n,r,t){var e=n<t.length&&0<=n?n:t.length,u=t.slice(0);return u.splice(e,0,r),u}),I=r(function(n,r){return n.filter(function(n){return-1!==r.indexOf(n)})}),P=r(function(n,r){return!a(r)&&r.constructor===n||r instanceof n});function q(n){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function z(n,r){return J(n)||function(n,r){var t=[],e=!0,u=!1,o=void 0;try{for(var i,c=n[Symbol.iterator]();!(e=(i=c.next()).done)&&(t.push(i.value),!r||t.length!==r);e=!0);}catch(n){u=!0,o=n}finally{try{e||null==c.return||c.return()}finally{if(u)throw o}}return t}(n,r)||T()}function F(n){return J(n)||function(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}(n)||T()}function J(n){if(Array.isArray(n))return n}function T(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var _=function(n){for(var r=[],t="";!(t=n.next()).done;)r.push(t.value);return r},D=function n(r,t,e,u){var o,i,c=function(n){var r={complex:["Arguments","Array","Object"],simple:["Boolean","Number","String"],date:["Date"],err:["Error"],regex:["RegExp"],map:["Map","Set"],other:["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","ArrayBuffer"]};for(var t in r)if(-1!==r[t].indexOf(n))return t;return""}(Object.prototype.toString.call(r).slice(8,-1));if(E(r,t))return!0;if(i=t,null===(o=r)||null===i||Object.prototype.toString.call(o).slice(8,-1)!==Object.prototype.toString.call(i).slice(8,-1))return!1;switch(c){case"complex":break;case"simple":if(q(r)!==q(t)||!E(r.valueOf(),t.valueOf()))return!1;break;case"date":if(!E(r.valueOf(),t.valueOf()))return!1;break;case"err":return r.name===t.name&&r.message===t.message;case"regex":if(!function(n,r){for(var t=["source","global","ignoreCase","multiline","sticky","unicode"],e=0;e<t.length;e++){var u=t[e];if(n[u]!==r[u])return!1}return!0}(r,t))return!1;break;case"map":if(!n(_(r.entries()),_(t.entries()),e,u))return!1;break;case"other":break;default:return!1}var f=Object.keys(r);if(f.length!==Object.keys(t).length)return!1;for(var a=e.length-1,l=f.length-1;0<=a;){if(e[a]===r)return u[a]===t;a-=1}for(e.push(r),u.push(t);0<=l;){var s=f[l];if(!Object.prototype.hasOwnProperty.call(t,s)||!n(t[s],r[s],e,u))return!1;l-=1}return e.pop(),u.pop(),!0},R=function(n){return n[n.length-1]},G=r(function(n,r){return Math.abs(Math.floor(n/w(n,r)*r))}),H=r(function(n,r){return n<r}),K=r(function(n,r){return n<=r}),L=r(function(n,r){return r.map(n)}),Q=r(function(n,r){return n*r}),V=r(function(n,r){return r[n<0?r.length+n:n]}),W=r(function(n,t){var e=m(n);return Object.keys(t).reduce(function(n,r){return-1===e.indexOf(r)&&(n[r]=t[r]),n},{})}),X=r(function(n,r){return n||r}),Y=r(function(o,n){return n.reduce(function(n,r){var t=z(n,2),e=t[0],u=t[1];return o(r)?[e.concat(r),u]:[e,u.concat(r)]},[[],[]])}),Z=y(2,function n(r,t){var e=F(r),u=e[0],o=e.slice(1);return o.length?a(t[u])?void 0:n(o,t[u]):t[u]}),$=r(function(n,r){return n.reduce(function(n,r){return r(n)},r)}),nn=r(function(t,e){return i({},e,Object.keys(t).reduce(function(n,r){return e.hasOwnProperty(r)&&(n[r]=t[r](e[r])),n},{}))}),rn=r(function u(o,i){return Object.keys(i).reduce(function(n,r){var t,e=i[r];return t=e,"[object Object]"===Object.prototype.toString.call(t)?n.concat(u(o,e)):(r===o&&n.push(e),n)},[])}),tn=r(function(n,r){return[].concat(n,r)}),en=r(function(n,r){return r[n]}),un=r(function(n,r,t){return t.reduce(n,r)}),on=r(function(r,n){return n.filter(function(n){return!r(n)})}),cn=r(function(n,r){return l([r.slice(0,n),r.slice(n+1)])}),fn=r(function(n,r){return Number("".concat(Math.round("".concat(r,"e").concat(n)),"e-").concat(n))}),an=r(function(t,e){return Object.keys(e).reduce(function(n,r){return-1!==t.indexOf(r)&&(n[r]=e[r]),n},{})}),ln=r(function(n,r,t){return t.slice(n,r)}),sn=r(function(n,r){return r.some(n)}),pn=r(function(n,r){return r.slice().sort(n)}),yn=r(function(n,r){return n-r}),dn=function(n){return n.trim()},hn=r(function(t,n){return n.reduce(function(n,r){return-1===n.map(t).indexOf(t(r))&&n.push(r),n},[])}),vn=hn(M),gn=r(function(n,r){return vn(n.concat(r))}),mn=r(function(n,r,t){return l([t.slice(0,n),r,t.slice(n+1)])}),bn=y(3,function(n,r){for(var t=arguments.length,e=new Array(2<t?t-2:0),u=2;u<t;u++)e[u-2]=arguments[u];if(n.apply(void 0,e))return r.apply(void 0,e)}),On=r(function(r,t){return Object.keys(r).every(function(n){return r[n](t[n])})});n.add=t,n.and=e,n.any=u,n.assign=i,n.capitalize=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.compact=function(n){return n.filter(function(n){return Boolean(n)})},n.complement=f,n.compress=function(t){return Object.keys(t).reduce(function(n,r){return a(t[r])||(n[r]=t[r]),n},{})},n.concat=l,n.concatMap=s,n.contains=p,n.curry=r,n.curryN=y,n.deepClone=function(n){return JSON.parse(JSON.stringify(n))},n.defaults=d,n.difference=h,n.div=v,n.empty=function(n){return"Array"===g(n)?[]:"String"===g(n)?"":"Object"===g(n)?{}:void 0},n.ensureArray=m,n.entries=function(r){return Object.keys(r).map(function(n){return[n,r[n]]})},n.every=b,n.filter=O,n.find=j,n.first=A,n.fuzzySearch=x,n.gcd=w,n.gets=S,n.gt=N,n.gte=C,n.has=o,n.height=function(n){return Object.keys(n).length},n.identical=E,n.identity=M,n.includes=U,n.insert=B,n.intersection=I,n.is=P,n.isEmpty=function(n){return!n||!Object.keys(n).length},n.isEqual=function(n,r){return D(n,r,[],[])},n.isNil=a,n.juxt=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.map(function(n){return n.apply(void 0,r)})}},n.last=R,n.lcm=G,n.length=function(n){return n.length},n.lt=H,n.lte=K,n.map=L,n.max=function(n){return R(n.sort(function(n,r){return r<n}))},n.mean=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return n.length?n.reduce(function(n,r){return n+r},0)/n.length:0},n.min=function(n){return A(n.sort(function(n,r){return r<n}))},n.mul=Q,n.not=c,n.nth=V,n.omit=W,n.or=X,n.partition=Y,n.path=Z,n.pipe=$,n.plan=nn,n.pluck=rn,n.prepend=tn,n.prop=en,n.range=function(n,r){if(isNaN(n)||r&&isNaN(r))throw new TypeError("Both Arguments should be a number type");var t=[],e=r,u=n;for(r||(u=0,e=n);u<e;)t.push(u),u+=1;return t},n.reduce=un,n.reject=on,n.remove=cn,n.reverse=function(n){return n.slice().reverse()},n.round=fn,n.sift=an,n.slice=ln,n.some=sn,n.sort=pn,n.sub=yn,n.trim=dn,n.type=g,n.union=gn,n.uniq=vn,n.uniqBy=hn,n.update=mn,n.values=function(r){return Object.keys(r).map(function(n){return r[n]})},n.when=bn,n.whole=On,n.words=function(n){return dn(n).split(/\s+/)},Object.defineProperty(n,"__esModule",{value:!0})}); | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.kyanite={})}(this,function(n){"use strict";var r=function e(u){for(var n=arguments.length,o=new Array(1<n?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return u.length<=o.length?u.apply(void 0,o):function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.apply(void 0,[u].concat(o,r))}},t=r(function(n,r){return Number(n)+Number(r)}),e=r(function(n,r){return n&&r}),u=r(function(r,t){return Object.keys(r).some(function(n){return r[n](t[n])})}),o=r(function(n,r){return n<r?-1:r<n?1:0}),i=r(function(n,r){return Object.prototype.hasOwnProperty.call(r,n)}),c=function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduce(function(n,r){for(var t in r)i(t,r)&&(n[t]=r[t]);return n},{})},f=r(function(n,r,t){return n(t)&&r(t)}),a=function(n){return!n},l=r(function(n,r){return a(n(r))}),s=function(n){return null==n},p=function(n){return n.reduce(function(n,r){return n.concat(r)},[])},y=r(function(t,n){return n.reduce(function(n,r){return n.concat(t(r))},[])}),d=r(function(n,r){return-1!==r.indexOf(n)}),h=function e(u,o){for(var n=arguments.length,i=new Array(2<n?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return u<=0?o.apply(void 0,i):function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.apply(void 0,[u-r.length,o].concat(i,r))}},v=r(function(t,n){return Object.keys(t).reduce(function(n,r){return null==n[r]&&(n[r]=t[r]),n},n)}),g=r(function(n,r){return r<n?-1:n<r?1:0}),m=r(function(n,r){return n.filter(function(n){return-1===r.indexOf(n)})}),b=r(function(n,r){return n/r}),O=function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)},j=function(n){return Array.isArray(n)?n:s(n)?[]:[n]},A=r(function(n,r){return r.every(n)}),k=r(function(n,r){return r.filter(n)}),x=r(function(n,r){for(var t=0,e=r.length;t<e;){if(n(r[t]))return r[t];t+=1}return!1}),w=function(n){return n[0]},S=function(n,r,t){for(var e=n,u=r.length;e<u;)if(r.charCodeAt(e++)===t)return!0;return!1},N=r(function(n,r){var t=r.length,e=n.length;return!(t<e)&&(e===t?n===r:function(n,r){for(var t=r.length,e=0;e<t;e++)if(!S(0,n,r.charCodeAt(e)))return!1;return!0}(r,n))}),C=r(function n(r,t){return t?n(t,r%t):r}),E=r(function(n,r){return n.map(function(n){return r[n]})}),M=r(function(n,r){return r<n}),U=r(function(n,r){return r<=n}),B=r(function(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}),I=function(n){return n},P=r(function(n,r){return-1!==r.indexOf(n)}),q=r(function(n,r,t){var e=n<t.length&&0<=n?n:t.length,u=t.slice(0);return u.splice(e,0,r),u}),z=r(function(n,r){return n.filter(function(n){return-1!==r.indexOf(n)})}),F=r(function(n,r){return!s(r)&&r.constructor===n||r instanceof n});function J(n){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function T(n,r){return D(n)||function(n,r){var t=[],e=!0,u=!1,o=void 0;try{for(var i,c=n[Symbol.iterator]();!(e=(i=c.next()).done)&&(t.push(i.value),!r||t.length!==r);e=!0);}catch(n){u=!0,o=n}finally{try{e||null==c.return||c.return()}finally{if(u)throw o}}return t}(n,r)||R()}function _(n){return D(n)||function(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}(n)||R()}function D(n){if(Array.isArray(n))return n}function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var G=function(n){for(var r=[],t="";!(t=n.next()).done;)r.push(t.value);return r},H=function n(r,t,e,u){var o,i,c=function(n){var r={complex:["Arguments","Array","Object"],simple:["Boolean","Number","String"],date:["Date"],err:["Error"],regex:["RegExp"],map:["Map","Set"],other:["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","ArrayBuffer"]};for(var t in r)if(-1!==r[t].indexOf(n))return t;return""}(Object.prototype.toString.call(r).slice(8,-1));if(B(r,t))return!0;if(i=t,null===(o=r)||null===i||Object.prototype.toString.call(o).slice(8,-1)!==Object.prototype.toString.call(i).slice(8,-1))return!1;switch(c){case"complex":break;case"simple":if(J(r)!==J(t)||!B(r.valueOf(),t.valueOf()))return!1;break;case"date":if(!B(r.valueOf(),t.valueOf()))return!1;break;case"err":return r.name===t.name&&r.message===t.message;case"regex":if(!function(n,r){for(var t=["source","global","ignoreCase","multiline","sticky","unicode"],e=0;e<t.length;e++){var u=t[e];if(n[u]!==r[u])return!1}return!0}(r,t))return!1;break;case"map":if(!n(G(r.entries()),G(t.entries()),e,u))return!1;break;case"other":break;default:return!1}var f=Object.keys(r);if(f.length!==Object.keys(t).length)return!1;for(var a=e.length-1,l=f.length-1;0<=a;){if(e[a]===r)return u[a]===t;a-=1}for(e.push(r),u.push(t);0<=l;){var s=f[l];if(!Object.prototype.hasOwnProperty.call(t,s)||!n(t[s],r[s],e,u))return!1;l-=1}return e.pop(),u.pop(),!0},K=function(n){return n[n.length-1]},L=r(function(n,r){return Math.abs(Math.floor(n/C(n,r)*r))}),Q=r(function(n,r){return n<r}),V=r(function(n,r){return n<=r}),W=r(function(n,r){return r.map(n)}),X=r(function(n,r){return n*r}),Y=r(function(n,r){return r[n<0?r.length+n:n]}),Z=r(function(n,t){var e=j(n);return Object.keys(t).reduce(function(n,r){return-1===e.indexOf(r)&&(n[r]=t[r]),n},{})}),$=r(function(n,r){return n||r}),nn=r(function(o,n){return n.reduce(function(n,r){var t=T(n,2),e=t[0],u=t[1];return o(r)?[e.concat(r),u]:[e,u.concat(r)]},[[],[]])}),rn=h(2,function n(r,t){var e=_(r),u=e[0],o=e.slice(1);return o.length?s(t[u])?void 0:n(o,t[u]):t[u]}),tn=r(function(n,r){return n.reduce(function(n,r){return r(n)},r)}),en=r(function(t,e){return c({},e,Object.keys(t).reduce(function(n,r){return e.hasOwnProperty(r)&&(n[r]=t[r](e[r])),n},{}))}),un=r(function u(o,i){return Object.keys(i).reduce(function(n,r){var t,e=i[r];return t=e,"[object Object]"===Object.prototype.toString.call(t)?n.concat(u(o,e)):(r===o&&n.push(e),n)},[])}),on=r(function(n,r){return[].concat(n,r)}),cn=r(function(n,r){return r[n]}),fn=r(function(n,r,t){return t.reduce(n,r)}),an=r(function(r,n){return n.filter(function(n){return!r(n)})}),ln=r(function(n,r){return p([r.slice(0,n),r.slice(n+1)])}),sn=r(function(n,r){return Number("".concat(Math.round("".concat(r,"e").concat(n)),"e-").concat(n))}),pn=r(function(t,e){return Object.keys(e).reduce(function(n,r){return-1!==t.indexOf(r)&&(n[r]=e[r]),n},{})}),yn=r(function(n,r,t){return t.slice(n,r)}),dn=r(function(n,r){return r.some(n)}),hn=r(function(n,r){return r.slice().sort(n)}),vn=r(function(n,r){return n-r}),gn=function(n){return n.trim()},mn=r(function(t,n){return n.reduce(function(n,r){return-1===n.map(t).indexOf(t(r))&&n.push(r),n},[])}),bn=mn(I),On=r(function(n,r){return bn(n.concat(r))}),jn=r(function(n,r,t){return p([t.slice(0,n),r,t.slice(n+1)])}),An=h(3,function(n,r){for(var t=arguments.length,e=new Array(2<t?t-2:0),u=2;u<t;u++)e[u-2]=arguments[u];if(n.apply(void 0,e))return r.apply(void 0,e)}),kn=r(function(r,t){return Object.keys(r).every(function(n){return r[n](t[n])})});n.add=t,n.and=e,n.any=u,n.ascend=o,n.assign=c,n.both=f,n.capitalize=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.compact=function(n){return n.filter(function(n){return Boolean(n)})},n.complement=l,n.compress=function(t){return Object.keys(t).reduce(function(n,r){return s(t[r])||(n[r]=t[r]),n},{})},n.concat=p,n.concatMap=y,n.contains=d,n.curry=r,n.curryN=h,n.deepClone=function(n){return JSON.parse(JSON.stringify(n))},n.defaults=v,n.descend=g,n.difference=m,n.div=b,n.empty=function(n){return"Array"===O(n)?[]:"String"===O(n)?"":"Object"===O(n)?{}:void 0},n.ensureArray=j,n.entries=function(r){return Object.keys(r).map(function(n){return[n,r[n]]})},n.every=A,n.filter=k,n.find=x,n.first=w,n.fuzzySearch=N,n.gcd=C,n.gets=E,n.gt=M,n.gte=U,n.has=i,n.height=function(n){return Object.keys(n).length},n.identical=B,n.identity=I,n.includes=P,n.insert=q,n.intersection=z,n.is=F,n.isEmpty=function(n){return!n||!Object.keys(n).length},n.isEqual=function(n,r){return H(n,r,[],[])},n.isNil=s,n.juxt=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return function(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return e.map(function(n){return n.apply(void 0,r)})}},n.last=K,n.lcm=L,n.length=function(n){return n.length},n.lt=Q,n.lte=V,n.map=W,n.max=function(n){return K(n.sort(function(n,r){return r<n}))},n.mean=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return n.length?n.reduce(function(n,r){return n+r},0)/n.length:0},n.min=function(n){return w(n.sort(function(n,r){return r<n}))},n.mul=X,n.not=a,n.nth=Y,n.omit=Z,n.or=$,n.partition=nn,n.path=rn,n.pipe=tn,n.plan=en,n.pluck=un,n.prepend=on,n.prop=cn,n.range=function(n,r){if(isNaN(n)||r&&isNaN(r))throw new TypeError("Both Arguments should be a number type");var t=[],e=r,u=n;for(r||(u=0,e=n);u<e;)t.push(u),u+=1;return t},n.reduce=fn,n.reject=an,n.remove=ln,n.reverse=function(n){return n.slice().reverse()},n.round=sn,n.sift=pn,n.slice=yn,n.some=dn,n.sort=hn,n.sub=vn,n.trim=gn,n.type=O,n.union=On,n.uniq=bn,n.uniqBy=mn,n.update=jn,n.values=function(r){return Object.keys(r).map(function(n){return r[n]})},n.when=An,n.whole=kn,n.words=function(n){return gn(n).split(/\s+/)},Object.defineProperty(n,"__esModule",{value:!0})}); |
{ | ||
"name": "kyanite", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "A small library of pure functional utilities to make life easier and data better", | ||
@@ -27,3 +27,2 @@ "main": "dist/kyanite.min.js", | ||
"prepack": "rollup -c rollup.split.js && node scripts/create-export.js && rollup -c && node scripts/docs.js", | ||
"postpack": "npm run clean", | ||
"build": "rollup -c", | ||
@@ -30,0 +29,0 @@ "split": "rollup -c rollup.split.js", |
@@ -11,2 +11,4 @@ [![npm](https://img.shields.io/npm/v/kyanite.svg?style=flat-square)](https://www.npmjs.com/package/kyanite) | ||
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
## Contents | ||
@@ -13,0 +15,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173887
98
993
104