From e9a3a46d9beaa1ad1b786eb0cbd00fd2283f8463 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 23 Nov 2021 12:50:17 +0000 Subject: [PATCH] chore(release): set `package.json` to 1.17.0 [skip ci] # [1.17.0](https://github.com/martinkr/onelinecode/compare/v1.16.0...v1.17.0) (2021-11-23) ### Features * **array/average:** performance ([74776c7](https://github.com/martinkr/onelinecode/commit/74776c76b2dccbd2438d4dca25e2e06fc5c67c47)) --- CHANGELOG.md | 7 +++++++ dist/index.cjs.js | 2 +- dist/index.esm.js | 2 +- dist/index.js | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5483f0..82319de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.17.0](https://github.com/martinkr/onelinecode/compare/v1.16.0...v1.17.0) (2021-11-23) + + +### Features + +* **array/average:** performance ([74776c7](https://github.com/martinkr/onelinecode/commit/74776c76b2dccbd2438d4dca25e2e06fc5c67c47)) + # [1.16.0](https://github.com/martinkr/onelinecode/compare/v1.15.0...v1.16.0) (2021-11-22) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index e90b395..e1c1874 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -1,2 +1,2 @@ // ! onelinecode vv1.5.5 -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Object.freeze({__proto__:null,isEmpty:({length:e})=>0===e,removeDuplicates:e=>[...new Set(e)],occurrenceMap:e=>e.reduce(((e,t)=>(e[t]=(e[t]||0)+1,e)),{}),shallowClone:e=>e.slice(0),lowestNumber:e=>Math.min(...e),highestNumber:e=>Math.max(...e),closestNumber:(e,t)=>e.reduce(((e,r)=>Math.abs(r-t)e.indexOf(Math.min.apply(null,e)),indexOfHighestNumber:e=>e.indexOf(Math.max.apply(null,e)),splitInHalf:e=>[e.slice(0,Math.ceil(e.length/2)),e.slice(Math.ceil(e.length/2))],longestString:e=>e.reduce(((e,t)=>e.length>t.length?e:t)),shortestString:e=>e.reduce(((e,t)=>e.length(e.forEach((e=>{e.length(e.forEach((e=>{e.length>t&&(t=e.length)})),t),oddItems:e=>e.filter(((e,t)=>!0&t)),evenItems:e=>e.filter(((e,t)=>t%2==0)),mergeArrayUnique:(e,t)=>[...new Set([...e,...t])],mergeArray:(e,t)=>[...e,...t],clean:e=>e.filter((e=>!!e||0===e||!1===e)),cleanFalsy:e=>e.filter((e=>e)),sum:e=>e.reduce(((e,t)=>e+t),0),average:e=>e.reduce(((e,t)=>e+t),0)/e.length,nthItems:(e,t)=>e.filter(((e,r)=>r%t==t-1)),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>e-t)).reverse()});exports.arr=e; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Object.freeze({__proto__:null,isEmpty:({length:e})=>0===e,removeDuplicates:e=>[...new Set(e)],occurrenceMap:e=>e.reduce(((e,t)=>(e[t]=(e[t]||0)+1,e)),{}),shallowClone:e=>e.slice(0),lowestNumber:e=>Math.min(...e),highestNumber:e=>Math.max(...e),closestNumber:(e,t)=>e.reduce(((e,r)=>Math.abs(r-t)e.indexOf(Math.min.apply(null,e)),indexOfHighestNumber:e=>e.indexOf(Math.max.apply(null,e)),splitInHalf:e=>[e.slice(0,Math.ceil(e.length/2)),e.slice(Math.ceil(e.length/2))],longestString:e=>e.reduce(((e,t)=>e.length>t.length?e:t)),shortestString:e=>e.reduce(((e,t)=>e.length(e.forEach((e=>{e.length(e.forEach((e=>{e.length>t&&(t=e.length)})),t),oddItems:e=>e.filter(((e,t)=>!0&t)),evenItems:e=>e.filter(((e,t)=>t%2==0)),mergeArrayUnique:(e,t)=>[...new Set([...e,...t])],mergeArray:(e,t)=>[...e,...t],clean:e=>e.filter((e=>!!e||0===e||!1===e)),cleanFalsy:e=>e.filter((e=>e)),sum:e=>e.reduce(((e,t)=>e+t),0),average:e=>e.reduce(((e,t)=>e+t))/e.length,nthItems:(e,t)=>e.filter(((e,r)=>r%t==t-1)),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>e-t)).reverse()});exports.arr=e; diff --git a/dist/index.esm.js b/dist/index.esm.js index 450c2f0..857519b 100644 --- a/dist/index.esm.js +++ b/dist/index.esm.js @@ -1,2 +1,2 @@ // ! onelinecode vv1.5.5 -var e=Object.freeze({__proto__:null,isEmpty:({length:e})=>0===e,removeDuplicates:e=>[...new Set(e)],occurrenceMap:e=>e.reduce(((e,t)=>(e[t]=(e[t]||0)+1,e)),{}),shallowClone:e=>e.slice(0),lowestNumber:e=>Math.min(...e),highestNumber:e=>Math.max(...e),closestNumber:(e,t)=>e.reduce(((e,r)=>Math.abs(r-t)e.indexOf(Math.min.apply(null,e)),indexOfHighestNumber:e=>e.indexOf(Math.max.apply(null,e)),splitInHalf:e=>[e.slice(0,Math.ceil(e.length/2)),e.slice(Math.ceil(e.length/2))],longestString:e=>e.reduce(((e,t)=>e.length>t.length?e:t)),shortestString:e=>e.reduce(((e,t)=>e.length(e.forEach((e=>{e.length(e.forEach((e=>{e.length>t&&(t=e.length)})),t),oddItems:e=>e.filter(((e,t)=>!0&t)),evenItems:e=>e.filter(((e,t)=>t%2==0)),mergeArrayUnique:(e,t)=>[...new Set([...e,...t])],mergeArray:(e,t)=>[...e,...t],clean:e=>e.filter((e=>!!e||0===e||!1===e)),cleanFalsy:e=>e.filter((e=>e)),sum:e=>e.reduce(((e,t)=>e+t),0),average:e=>e.reduce(((e,t)=>e+t),0)/e.length,nthItems:(e,t)=>e.filter(((e,r)=>r%t==t-1)),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>e-t)).reverse()});export{e as arr}; +var e=Object.freeze({__proto__:null,isEmpty:({length:e})=>0===e,removeDuplicates:e=>[...new Set(e)],occurrenceMap:e=>e.reduce(((e,t)=>(e[t]=(e[t]||0)+1,e)),{}),shallowClone:e=>e.slice(0),lowestNumber:e=>Math.min(...e),highestNumber:e=>Math.max(...e),closestNumber:(e,t)=>e.reduce(((e,r)=>Math.abs(r-t)e.indexOf(Math.min.apply(null,e)),indexOfHighestNumber:e=>e.indexOf(Math.max.apply(null,e)),splitInHalf:e=>[e.slice(0,Math.ceil(e.length/2)),e.slice(Math.ceil(e.length/2))],longestString:e=>e.reduce(((e,t)=>e.length>t.length?e:t)),shortestString:e=>e.reduce(((e,t)=>e.length(e.forEach((e=>{e.length(e.forEach((e=>{e.length>t&&(t=e.length)})),t),oddItems:e=>e.filter(((e,t)=>!0&t)),evenItems:e=>e.filter(((e,t)=>t%2==0)),mergeArrayUnique:(e,t)=>[...new Set([...e,...t])],mergeArray:(e,t)=>[...e,...t],clean:e=>e.filter((e=>!!e||0===e||!1===e)),cleanFalsy:e=>e.filter((e=>e)),sum:e=>e.reduce(((e,t)=>e+t),0),average:e=>e.reduce(((e,t)=>e+t))/e.length,nthItems:(e,t)=>e.filter(((e,r)=>r%t==t-1)),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>e-t)).reverse()});export{e as arr}; diff --git a/dist/index.js b/dist/index.js index ad8f928..3e7e5e8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,2 +1,2 @@ // ! onelinecode vv1.5.5 -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).onelinecode={})}(this,(function(e){"use strict";var t=Object.freeze({__proto__:null,isEmpty:({length:e})=>0===e,removeDuplicates:e=>[...new Set(e)],occurrenceMap:e=>e.reduce(((e,t)=>(e[t]=(e[t]||0)+1,e)),{}),shallowClone:e=>e.slice(0),lowestNumber:e=>Math.min(...e),highestNumber:e=>Math.max(...e),closestNumber:(e,t)=>e.reduce(((e,n)=>Math.abs(n-t)e.indexOf(Math.min.apply(null,e)),indexOfHighestNumber:e=>e.indexOf(Math.max.apply(null,e)),splitInHalf:e=>[e.slice(0,Math.ceil(e.length/2)),e.slice(Math.ceil(e.length/2))],longestString:e=>e.reduce(((e,t)=>e.length>t.length?e:t)),shortestString:e=>e.reduce(((e,t)=>e.length(e.forEach((e=>{e.length(e.forEach((e=>{e.length>t&&(t=e.length)})),t),oddItems:e=>e.filter(((e,t)=>!0&t)),evenItems:e=>e.filter(((e,t)=>t%2==0)),mergeArrayUnique:(e,t)=>[...new Set([...e,...t])],mergeArray:(e,t)=>[...e,...t],clean:e=>e.filter((e=>!!e||0===e||!1===e)),cleanFalsy:e=>e.filter((e=>e)),sum:e=>e.reduce(((e,t)=>e+t),0),average:e=>e.reduce(((e,t)=>e+t),0)/e.length,nthItems:(e,t)=>e.filter(((e,n)=>n%t==t-1)),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>e-t)).reverse()});e.arr=t,Object.defineProperty(e,"__esModule",{value:!0})})); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).onelinecode={})}(this,(function(e){"use strict";var t=Object.freeze({__proto__:null,isEmpty:({length:e})=>0===e,removeDuplicates:e=>[...new Set(e)],occurrenceMap:e=>e.reduce(((e,t)=>(e[t]=(e[t]||0)+1,e)),{}),shallowClone:e=>e.slice(0),lowestNumber:e=>Math.min(...e),highestNumber:e=>Math.max(...e),closestNumber:(e,t)=>e.reduce(((e,n)=>Math.abs(n-t)e.indexOf(Math.min.apply(null,e)),indexOfHighestNumber:e=>e.indexOf(Math.max.apply(null,e)),splitInHalf:e=>[e.slice(0,Math.ceil(e.length/2)),e.slice(Math.ceil(e.length/2))],longestString:e=>e.reduce(((e,t)=>e.length>t.length?e:t)),shortestString:e=>e.reduce(((e,t)=>e.length(e.forEach((e=>{e.length(e.forEach((e=>{e.length>t&&(t=e.length)})),t),oddItems:e=>e.filter(((e,t)=>!0&t)),evenItems:e=>e.filter(((e,t)=>t%2==0)),mergeArrayUnique:(e,t)=>[...new Set([...e,...t])],mergeArray:(e,t)=>[...e,...t],clean:e=>e.filter((e=>!!e||0===e||!1===e)),cleanFalsy:e=>e.filter((e=>e)),sum:e=>e.reduce(((e,t)=>e+t),0),average:e=>e.reduce(((e,t)=>e+t))/e.length,nthItems:(e,t)=>e.filter(((e,n)=>n%t==t-1)),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>e-t)).reverse()});e.arr=t,Object.defineProperty(e,"__esModule",{value:!0})}));