From 63a26fead606358a3ad3000c13d51616c1c80097 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 2 Dec 2021 12:29:39 +0000 Subject: [PATCH] chore(release): set `package.json` to 1.19.0 [skip ci] # [1.19.0](https://github.com/martinkr/onelinecode/compare/v1.18.1...v1.19.0) (2021-12-02) ### Features * **array/rangeArray:** create a range array ([b2ed9e9](https://github.com/martinkr/onelinecode/commit/b2ed9e91369787bb9133da0c75aa592e2b48ddbd)) --- 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 cb68a52..16ce68b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.19.0](https://github.com/martinkr/onelinecode/compare/v1.18.1...v1.19.0) (2021-12-02) + + +### Features + +* **array/rangeArray:** create a range array ([b2ed9e9](https://github.com/martinkr/onelinecode/commit/b2ed9e91369787bb9133da0c75aa592e2b48ddbd)) + ## [1.18.1](https://github.com/martinkr/onelinecode/compare/v1.18.0...v1.18.1) (2021-12-01) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index fd2df52..c1029ff 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))/e.length,nthItems:(e,t)=>Array.from({length:~~(e.length/t)},((r,l)=>e[(l+1)*t-1])),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>t-e))});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)=>Array.from({length:~~(e.length/t)},((r,l)=>e[(l+1)*t-1])),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>t-e)),shuffle:(e,t)=>Array.from({length:~~(e.length/t)},((r,l)=>e[(l+1)*t-1])),createRange:(e,t)=>Array.from({length:t-e+1},((t,r)=>e+r))});exports.arr=e; diff --git a/dist/index.esm.js b/dist/index.esm.js index e219029..f7c511c 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))/e.length,nthItems:(e,t)=>Array.from({length:~~(e.length/t)},((r,l)=>e[(l+1)*t-1])),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>t-e))});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)=>Array.from({length:~~(e.length/t)},((r,l)=>e[(l+1)*t-1])),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>t-e)),shuffle:(e,t)=>Array.from({length:~~(e.length/t)},((r,l)=>e[(l+1)*t-1])),createRange:(e,t)=>Array.from({length:t-e+1},((t,r)=>e+r))});export{e as arr}; diff --git a/dist/index.js b/dist/index.js index 9dca819..17d56b5 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))/e.length,nthItems:(e,t)=>Array.from({length:~~(e.length/t)},((n,l)=>e[(l+1)*t-1])),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>t-e))});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)=>Array.from({length:~~(e.length/t)},((n,r)=>e[(r+1)*t-1])),sortAsc:e=>[...e].sort(((e,t)=>e-t)),sortDesc:e=>[...e].sort(((e,t)=>t-e)),shuffle:(e,t)=>Array.from({length:~~(e.length/t)},((n,r)=>e[(r+1)*t-1])),createRange:(e,t)=>Array.from({length:t-e+1},((t,n)=>e+n))});e.arr=t,Object.defineProperty(e,"__esModule",{value:!0})}));