essy-util-misc
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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 f(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 i(n){return n[0].toUpperCase()+n.substring(1).toLowerCase()}function c(n,t,r){for(let e=0;e<n.length;e++)if(n[e][r]===t)return n[e];return!1}function l(n){return n}function a(){return!0}function d(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=>i(n)).join(" ")}function s(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 p(n,t){return Object.keys(n).map((r,e)=>t(r,n[r],e))}function y(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 b(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 f})),r.d(t,"capitalize",(function(){return i})),r.d(t,"findByProp",(function(){return c})),r.d(t,"fnIdentity",(function(){return l})),r.d(t,"fnNoOp",(function(){return a})),r.d(t,"fromCamelCase",(function(){return d})),r.d(t,"getArray",(function(){return s})),r.d(t,"mapObj",(function(){return p})),r.d(t,"sortByProp",(function(){return y})),r.d(t,"withoutByProp",(function(){return b}))}]); | ||
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[0].toUpperCase()+n.substring(1).toLowerCase()}function l(n,t,r){for(let e=0;e<n.length;e++)if(n[e][r]===t)return n[e];return!1}function a(n){return n}function d(){return!0}function s(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=>c(n)).join(" ")}function p(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 y(n,t){return Object.keys(n).map((r,e)=>t(r,n[r],e))}function b(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 h(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,"capitalize",(function(){return c})),r.d(t,"findByProp",(function(){return l})),r.d(t,"fnIdentity",(function(){return a})),r.d(t,"fnNoOp",(function(){return d})),r.d(t,"fromCamelCase",(function(){return s})),r.d(t,"getArray",(function(){return p})),r.d(t,"mapObj",(function(){return y})),r.d(t,"sortByProp",(function(){return b})),r.d(t,"withoutByProp",(function(){return h}))}]); |
{ | ||
"name": "essy-util-misc", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Miscellaneous Javascript utility functions.", | ||
@@ -9,3 +9,4 @@ "main": "index.js", | ||
"prepublishOnly": "npm run build", | ||
"postpublish": "rm -f index.js" | ||
"postpublish": "rm -f index.js", | ||
"test": "node ./test/index.js" | ||
}, | ||
@@ -12,0 +13,0 @@ "author": "Essy", |
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
3377