essy-util-misc
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -1,1 +0,1 @@ | ||
module.exports=function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=0)}([function(n,t,r){"use strict";function e(...n){return n.every(n=>!n)}function u(n){"object"==typeof window&&window.dataLayer.push(n)}function o(n,t){const r=[],e=[];return t.forEach(t=>{n.includes(t)||r.push(t)}),n.forEach(n=>{t.includes(n)||e.push(n)}),[r,e]}function i(n){let t=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;for(let e=0;e<n.length;e++)n[e]>t&&(t=n[e]),n[e]<r&&(r=n[e]);return[r,t]}function f(n,t){const r=void 0!==t,e=new Array(n);for(let u=0;u<n;u++)e[u]=r?t:u;return e}function c(n){return n.reduce((n,t)=>(n.includes(t)||n.push(t),n),[])}function l(n){return n[0].toUpperCase()+n.substring(1).toLowerCase()}function a(n,t,r){for(let e=0;e<n.length;e++)if(n[e][r]===t)return n[e];return!1}function d(n){return n}function s(){return!0}function p(n){const t=[];let r="";for(let e=0;e<n.length;e++)n[e]<"a"&&(t.push(r),r=""),r+=n[e];return t.push(r),t.map(n=>l(n)).join(" ")}function y(n,t=0,r=!1){const e=[];if(r)for(let r=0;r<n;r++)e.push(r+t);else for(let r=0;r<n;r++)e.push(t);return e}function b(n,t){return Object.keys(n).map((r,e)=>t(r,n[r],e))}function h(n,t="None"){if(0===n)return t;switch(n%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd";default:return n+"th"}}function m(n,t=!1){return t?function(t,r){return t[n]>r[n]?-1:t[n]<r[n]?1:0}:function(t,r){return t[n]<r[n]?-1:t[n]>r[n]?1:0}}function g(n,t,r){return n.filter(n=>n[t]!==r)}r.r(t),r.d(t,"allFalse",(function(){return e})),r.d(t,"analyticsEvent",(function(){return u})),r.d(t,"arrDiff",(function(){return o})),r.d(t,"arrExtent",(function(){return i})),r.d(t,"arrFill",(function(){return f})),r.d(t,"arrUnique",(function(){return c})),r.d(t,"capitalize",(function(){return l})),r.d(t,"findByProp",(function(){return a})),r.d(t,"fnIdentity",(function(){return d})),r.d(t,"fnNoOp",(function(){return s})),r.d(t,"fromCamelCase",(function(){return p})),r.d(t,"getArray",(function(){return y})),r.d(t,"mapObj",(function(){return b})),r.d(t,"numToString",(function(){return h})),r.d(t,"sortByProp",(function(){return m})),r.d(t,"withoutByProp",(function(){return g}))}]); | ||
module.exports=function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=0)}([function(n,t,r){"use strict";function e(...n){return n.every(n=>!n)}function u(n){"object"==typeof window&&window.dataLayer.push(n)}function o(n,t){const r=[],e=[];return t.forEach(t=>{n.includes(t)||r.push(t)}),n.forEach(n=>{t.includes(n)||e.push(n)}),[r,e]}function i(n){let t=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;for(let e=0;e<n.length;e++)n[e]>t&&(t=n[e]),n[e]<r&&(r=n[e]);return[r,t]}function f(n,t){const r=void 0!==t,e=new Array(n);for(let u=0;u<n;u++)e[u]=r?t:u;return e}function c(n,t,r){const e=[...n];if(r>=e.length){let n=r-e.length+1;for(;n--;)e.push(void 0)}return e.splice(r,0,e.splice(t,1)[0]),e}function l(n){return n.reduce((n,t)=>(n.includes(t)||n.push(t),n),[])}function a(n){return n[0].toUpperCase()+n.substring(1).toLowerCase()}function d(n,t,r){for(let e=0;e<n.length;e++)if(n[e][r]===t)return n[e];return!1}function s(n){return n}function p(){return!0}function y(n){const t=[];let r="";for(let e=0;e<n.length;e++)n[e]<"a"&&(t.push(r),r=""),r+=n[e];return t.push(r),t.map(n=>a(n)).join(" ")}function h(n,t=0,r=!1){const e=[];if(r)for(let r=0;r<n;r++)e.push(r+t);else for(let r=0;r<n;r++)e.push(t);return e}function b(n,t){return Object.keys(n).map((r,e)=>t(r,n[r],e))}function m(n,t="None"){if(0===n)return t;switch(n%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd";default:return n+"th"}}function g(n,t=!1){return t?function(t,r){return t[n]>r[n]?-1:t[n]<r[n]?1:0}:function(t,r){return t[n]<r[n]?-1:t[n]>r[n]?1:0}}function v(n,t,r){return n.filter(n=>n[t]!==r)}r.r(t),r.d(t,"allFalse",(function(){return e})),r.d(t,"analyticsEvent",(function(){return u})),r.d(t,"arrDiff",(function(){return o})),r.d(t,"arrExtent",(function(){return i})),r.d(t,"arrFill",(function(){return f})),r.d(t,"arrMove",(function(){return c})),r.d(t,"arrUnique",(function(){return l})),r.d(t,"capitalize",(function(){return a})),r.d(t,"findByProp",(function(){return d})),r.d(t,"fnIdentity",(function(){return s})),r.d(t,"fnNoOp",(function(){return p})),r.d(t,"fromCamelCase",(function(){return y})),r.d(t,"getArray",(function(){return h})),r.d(t,"mapObj",(function(){return b})),r.d(t,"numToString",(function(){return m})),r.d(t,"sortByProp",(function(){return g})),r.d(t,"withoutByProp",(function(){return v}))}]); |
{ | ||
"name": "essy-util-misc", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Miscellaneous Javascript utility functions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
3846