From e2429f5d4dea3b1aaced3614c669b03db990b9b6 Mon Sep 17 00:00:00 2001 From: Chalarangelo Date: Sun, 13 Feb 2022 18:10:27 +0200 Subject: [PATCH] Retitle snippets --- snippets/CSVToArray.md | 2 +- snippets/CSVToJSON.md | 2 +- snippets/accumulate.md | 2 +- snippets/addClass.md | 2 +- snippets/addDaysToDate.md | 2 +- snippets/addEventListenerAll.md | 2 +- snippets/addMinutesToDate.md | 2 +- snippets/addMultipleEvents.md | 2 +- snippets/addStyles.md | 4 ++-- snippets/addWeekDays.md | 2 +- snippets/all.md | 2 +- snippets/allEqual.md | 2 +- snippets/allEqualBy.md | 2 +- snippets/allUnique.md | 2 +- snippets/allUniqueBy.md | 2 +- snippets/and.md | 2 +- snippets/any.md | 2 +- snippets/aperture.md | 2 +- snippets/approximatelyEqual.md | 2 +- snippets/arithmeticProgression.md | 2 +- snippets/arrayToCSV.md | 2 +- snippets/arrayToHTMLList.md | 4 ++-- snippets/ary.md | 2 +- snippets/assertValidKeys.md | 2 +- snippets/atob.md | 2 +- snippets/attempt.md | 2 +- snippets/average.md | 2 +- snippets/averageBy.md | 2 +- snippets/bifurcate.md | 4 ++-- snippets/bifurcateBy.md | 4 ++-- snippets/binary.md | 2 +- snippets/binarySearch.md | 2 +- snippets/bind.md | 2 +- snippets/bindAll.md | 2 +- snippets/bindKey.md | 2 +- snippets/binomialCoefficient.md | 2 +- snippets/both.md | 2 +- snippets/bottomVisible.md | 2 +- snippets/btoa.md | 2 +- snippets/bubbleSort.md | 2 +- snippets/bucketSort.md | 2 +- snippets/byteSize.md | 2 +- snippets/caesarCipher.md | 2 +- snippets/call.md | 2 +- snippets/capitalize.md | 2 +- snippets/capitalizeEveryWord.md | 2 +- snippets/cartesianProduct.md | 2 +- snippets/castArray.md | 2 +- snippets/celsiusToFahrenheit.md | 2 +- snippets/chainAsync.md | 2 +- snippets/changeLightness.md | 2 +- snippets/checkProp.md | 2 +- snippets/chunk.md | 2 +- snippets/chunkIntoN.md | 2 +- snippets/chunkify.md | 2 +- snippets/clampNumber.md | 2 +- snippets/cloneRegExp.md | 2 +- snippets/coalesce.md | 2 +- snippets/coalesceFactory.md | 4 ++-- snippets/collectInto.md | 2 +- snippets/colorize.md | 2 +- snippets/combine.md | 2 +- snippets/compact.md | 4 ++-- snippets/compactObject.md | 2 +- snippets/compactWhitespace.md | 2 +- snippets/complement.md | 2 +- snippets/compose.md | 2 +- snippets/composeRight.md | 2 +- snippets/containsWhitespace.md | 2 +- snippets/converge.md | 2 +- snippets/copySign.md | 2 +- snippets/copyToClipboard.md | 2 +- snippets/copyToClipboardAsync.md | 2 +- snippets/countBy.md | 2 +- snippets/countOccurrences.md | 2 +- snippets/countSubstrings.md | 2 +- snippets/countWeekDaysBetween.md | 2 +- snippets/counter.md | 2 +- snippets/createDirIfNotExists.md | 2 +- snippets/createElement.md | 2 +- snippets/createEventHub.md | 2 +- snippets/currentURL.md | 2 +- snippets/curry.md | 2 +- snippets/cycleGenerator.md | 2 +- 84 files changed, 90 insertions(+), 90 deletions(-) diff --git a/snippets/CSVToArray.md b/snippets/CSVToArray.md index 27136aff4..b78960161 100644 --- a/snippets/CSVToArray.md +++ b/snippets/CSVToArray.md @@ -1,5 +1,5 @@ --- -title: CSVToArray +title: CSV to array tags: string,array,intermediate firstSeen: 2018-06-27T20:57:54+03:00 lastUpdated: 2022-01-30T12:14:39+02:00 diff --git a/snippets/CSVToJSON.md b/snippets/CSVToJSON.md index 9d0e9a414..c1d7b62d2 100644 --- a/snippets/CSVToJSON.md +++ b/snippets/CSVToJSON.md @@ -1,5 +1,5 @@ --- -title: CSVToJSON +title: CSV to JSON tags: string,object,advanced firstSeen: 2018-06-27T21:14:24+03:00 lastUpdated: 2022-01-30T12:14:39+02:00 diff --git a/snippets/accumulate.md b/snippets/accumulate.md index 4c78cbce6..cd1400ecc 100644 --- a/snippets/accumulate.md +++ b/snippets/accumulate.md @@ -1,5 +1,5 @@ --- -title: accumulate +title: Partial sum array tags: math,array,intermediate firstSeen: 2020-05-04T12:20:46+03:00 lastUpdated: 2022-01-30T13:10:13+02:00 diff --git a/snippets/addClass.md b/snippets/addClass.md index b0d55ec86..b90f52fd8 100644 --- a/snippets/addClass.md +++ b/snippets/addClass.md @@ -1,5 +1,5 @@ --- -title: addClass +title: Add class to HTML element tags: browser,beginner firstSeen: 2020-12-30T19:21:15+02:00 lastUpdated: 2020-12-30T19:21:15+02:00 diff --git a/snippets/addDaysToDate.md b/snippets/addDaysToDate.md index b318679dc..bd1fef14c 100644 --- a/snippets/addDaysToDate.md +++ b/snippets/addDaysToDate.md @@ -1,5 +1,5 @@ --- -title: addDaysToDate +title: Add days to date tags: date,intermediate firstSeen: 2020-10-12T03:03:18+03:00 lastUpdated: 2020-11-28T19:18:29+02:00 diff --git a/snippets/addEventListenerAll.md b/snippets/addEventListenerAll.md index 96c94a394..2315a1a8c 100644 --- a/snippets/addEventListenerAll.md +++ b/snippets/addEventListenerAll.md @@ -1,5 +1,5 @@ --- -title: addEventListenerAll +title: Add event listener to all targets tags: browser,event,intermediate firstSeen: 2021-04-22T08:53:29+03:00 lastUpdated: 2021-04-22T08:53:29+03:00 diff --git a/snippets/addMinutesToDate.md b/snippets/addMinutesToDate.md index e0f1a11b2..72ed3ba65 100644 --- a/snippets/addMinutesToDate.md +++ b/snippets/addMinutesToDate.md @@ -1,5 +1,5 @@ --- -title: addMinutesToDate +title: Add minutes to date tags: date,intermediate firstSeen: 2020-11-28T19:27:46+02:00 lastUpdated: 2020-11-28T19:27:46+02:00 diff --git a/snippets/addMultipleEvents.md b/snippets/addMultipleEvents.md index f0d6b5109..f165d9f0a 100644 --- a/snippets/addMultipleEvents.md +++ b/snippets/addMultipleEvents.md @@ -1,5 +1,5 @@ --- -title: addMultipleListeners +title: Add multiple listeners tags: browser,event,intermediate firstSeen: 2020-10-08T00:40:30+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/addStyles.md b/snippets/addStyles.md index 769ceebb1..266ebf05f 100644 --- a/snippets/addStyles.md +++ b/snippets/addStyles.md @@ -1,11 +1,11 @@ --- -title: addStyles +title: Add styles to HTML element tags: browser,beginner firstSeen: 2021-01-07T00:37:43+02:00 lastUpdated: 2021-01-07T00:37:43+02:00 --- -Adds the provided styles to the given element. +Adds the provided styles to the given HTML element. - Use `Object.assign()` and `ElementCSSInlineStyle.style` to merge the provided `styles` object into the style of the given element. diff --git a/snippets/addWeekDays.md b/snippets/addWeekDays.md index cd6a2d1eb..7e9aa9be9 100644 --- a/snippets/addWeekDays.md +++ b/snippets/addWeekDays.md @@ -1,5 +1,5 @@ --- -title: addWeekDays +title: Add weekdays to date tags: date,intermediate firstSeen: 2020-10-11T16:51:39+03:00 lastUpdated: 2021-01-08T00:23:44+02:00 diff --git a/snippets/all.md b/snippets/all.md index 86605b328..2944dfc12 100644 --- a/snippets/all.md +++ b/snippets/all.md @@ -1,5 +1,5 @@ --- -title: all +title: Test if all array elements are truthy tags: array,beginner firstSeen: 2018-02-14T11:46:15+02:00 lastUpdated: 2020-10-18T20:24:28+03:00 diff --git a/snippets/allEqual.md b/snippets/allEqual.md index d606b5b67..28ba7a851 100644 --- a/snippets/allEqual.md +++ b/snippets/allEqual.md @@ -1,5 +1,5 @@ --- -title: allEqual +title: Check if array elements are equal tags: array,beginner firstSeen: 2018-08-03T00:03:08+03:00 lastUpdated: 2020-10-18T20:24:28+03:00 diff --git a/snippets/allEqualBy.md b/snippets/allEqualBy.md index cfb4b838d..37908e34d 100644 --- a/snippets/allEqualBy.md +++ b/snippets/allEqualBy.md @@ -1,5 +1,5 @@ --- -title: allEqualBy +title: Check if array elements are equal based on function tags: array,intermediate firstSeen: 2020-10-19T22:14:49+03:00 lastUpdated: 2020-10-19T22:14:49+03:00 diff --git a/snippets/allUnique.md b/snippets/allUnique.md index 3764e96d0..171b35726 100644 --- a/snippets/allUnique.md +++ b/snippets/allUnique.md @@ -1,5 +1,5 @@ --- -title: allUnique +title: Check if all array elements are unique tags: array,beginner firstSeen: 2020-10-19T19:47:26+03:00 lastUpdated: 2021-01-08T00:23:44+02:00 diff --git a/snippets/allUniqueBy.md b/snippets/allUniqueBy.md index 4acaef6ae..1e8d24636 100644 --- a/snippets/allUniqueBy.md +++ b/snippets/allUniqueBy.md @@ -1,5 +1,5 @@ --- -title: allUniqueBy +title: Check if all array elements are unique based on function tags: array,intermediate firstSeen: 2020-10-19T22:15:05+03:00 lastUpdated: 2021-01-08T00:23:44+02:00 diff --git a/snippets/and.md b/snippets/and.md index fca05cfca..197641cca 100644 --- a/snippets/and.md +++ b/snippets/and.md @@ -1,5 +1,5 @@ --- -title: and +title: Logical and tags: math,logic,beginner unlisted: true firstSeen: 2020-05-13T11:35:31+03:00 diff --git a/snippets/any.md b/snippets/any.md index ffa4f16de..f3065b623 100644 --- a/snippets/any.md +++ b/snippets/any.md @@ -1,5 +1,5 @@ --- -title: any +title: Test if any array element is truthy tags: array,beginner firstSeen: 2018-02-14T11:46:15+02:00 lastUpdated: 2020-10-18T20:24:28+03:00 diff --git a/snippets/aperture.md b/snippets/aperture.md index e3c43aeda..b006cd982 100644 --- a/snippets/aperture.md +++ b/snippets/aperture.md @@ -1,5 +1,5 @@ --- -title: aperture +title: Consecutive element subarrays tags: array,intermediate firstSeen: 2020-05-13T13:25:33+03:00 lastUpdated: 2020-10-18T20:24:28+03:00 diff --git a/snippets/approximatelyEqual.md b/snippets/approximatelyEqual.md index 16ea25b25..677ef5fa6 100644 --- a/snippets/approximatelyEqual.md +++ b/snippets/approximatelyEqual.md @@ -1,5 +1,5 @@ --- -title: approximatelyEqual +title: Approximately number equality tags: math,beginner firstSeen: 2018-02-14T12:47:13+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/arithmeticProgression.md b/snippets/arithmeticProgression.md index 88f781da4..cbb0d6d28 100644 --- a/snippets/arithmeticProgression.md +++ b/snippets/arithmeticProgression.md @@ -1,5 +1,5 @@ --- -title: arithmeticProgression +title: Arithmetic progression tags: math,algorithm,beginner firstSeen: 2020-10-04T11:37:07+03:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/arrayToCSV.md b/snippets/arrayToCSV.md index ad2b4aa0c..a261c9927 100644 --- a/snippets/arrayToCSV.md +++ b/snippets/arrayToCSV.md @@ -1,5 +1,5 @@ --- -title: arrayToCSV +title: Array to CSV tags: array,string,intermediate firstSeen: 2018-06-27T20:26:43+03:00 lastUpdated: 2020-11-03T21:55:08+02:00 diff --git a/snippets/arrayToHTMLList.md b/snippets/arrayToHTMLList.md index 6cfcfb59f..356796059 100644 --- a/snippets/arrayToHTMLList.md +++ b/snippets/arrayToHTMLList.md @@ -1,5 +1,5 @@ --- -title: arrayToHTMLList +title: Array to HTML list tags: browser,array,intermediate firstSeen: 2020-10-08T00:02:45+03:00 lastUpdated: 2020-10-20T11:46:23+03:00 @@ -10,7 +10,7 @@ Converts the given array elements into `
  • ` tags and appends them to the list - Use `Array.prototype.map()` and `Document.querySelector()` to create a list of html tags. ```js -const arrayToHTMLList = (arr, listID) => +const arrayToHTMLList = (arr, listID) => document.querySelector(`#${listID}`).innerHTML += arr .map(item => `
  • ${item}
  • `) .join(''); diff --git a/snippets/ary.md b/snippets/ary.md index 2b03fc06a..b93ec13d3 100644 --- a/snippets/ary.md +++ b/snippets/ary.md @@ -1,5 +1,5 @@ --- -title: ary +title: Function arity tags: function,advanced firstSeen: 2018-01-24T13:59:54+02:00 lastUpdated: 2020-10-18T20:24:28+03:00 diff --git a/snippets/assertValidKeys.md b/snippets/assertValidKeys.md index 290c817f4..35f16f8a2 100644 --- a/snippets/assertValidKeys.md +++ b/snippets/assertValidKeys.md @@ -1,5 +1,5 @@ --- -title: assertValidKeys +title: Assert object keys are valid tags: object,intermediate firstSeen: 2021-07-18T05:00:00-04:00 --- diff --git a/snippets/atob.md b/snippets/atob.md index bde719999..aaca0462a 100644 --- a/snippets/atob.md +++ b/snippets/atob.md @@ -1,5 +1,5 @@ --- -title: atob +title: Decode Base64 encoded string tags: node,string,beginner firstSeen: 2018-01-17T21:43:21+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/attempt.md b/snippets/attempt.md index bc8d98e48..317d49b60 100644 --- a/snippets/attempt.md +++ b/snippets/attempt.md @@ -1,5 +1,5 @@ --- -title: attempt +title: Attempt invoking a function tags: function,intermediate firstSeen: 2018-01-28T14:44:40+02:00 lastUpdated: 2020-10-18T20:24:28+03:00 diff --git a/snippets/average.md b/snippets/average.md index bce7f58de..36d3ce4a1 100644 --- a/snippets/average.md +++ b/snippets/average.md @@ -1,5 +1,5 @@ --- -title: average +title: Average of numbers tags: math,array,beginner firstSeen: 2017-12-29T13:29:49+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/averageBy.md b/snippets/averageBy.md index 6d1bccca5..52c2b9412 100644 --- a/snippets/averageBy.md +++ b/snippets/averageBy.md @@ -1,5 +1,5 @@ --- -title: averageBy +title: Mapped array average tags: math,array,intermediate firstSeen: 2018-01-11T12:25:54+02:00 lastUpdated: 2020-10-21T21:17:45+03:00 diff --git a/snippets/bifurcate.md b/snippets/bifurcate.md index b0c82f350..c97aa41cc 100644 --- a/snippets/bifurcate.md +++ b/snippets/bifurcate.md @@ -1,11 +1,11 @@ --- -title: bifurcate +title: Bifurcate array based on values tags: array,intermediate firstSeen: 2018-02-14T12:13:07+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 --- -Splits values into two groups, based on the result of the given `filter` array. +Splits values into two groups, based on the result of the given `filter` array. - Use `Array.prototype.reduce()` and `Array.prototype.push()` to add elements to groups, based on `filter`. - If `filter` has a truthy value for any element, add it to the first group, otherwise add it to the second group. diff --git a/snippets/bifurcateBy.md b/snippets/bifurcateBy.md index 3c9afd9ec..aa20c575a 100644 --- a/snippets/bifurcateBy.md +++ b/snippets/bifurcateBy.md @@ -1,11 +1,11 @@ --- -title: bifurcateBy +title: Bifurcate array based on function tags: array,intermediate firstSeen: 2018-02-14T12:13:07+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 --- -Splits values into two groups, based on the result of the given filtering function. +Splits values into two groups, based on the result of the given filtering function. - Use `Array.prototype.reduce()` and `Array.prototype.push()` to add elements to groups, based on the value returned by `fn` for each element. - If `fn` returns a truthy value for any element, add it to the first group, otherwise add it to the second group. diff --git a/snippets/binary.md b/snippets/binary.md index cd50363b0..040bc00ee 100644 --- a/snippets/binary.md +++ b/snippets/binary.md @@ -1,5 +1,5 @@ --- -title: binary +title: Binary function arity tags: function,intermediate firstSeen: 2020-05-13T13:36:36+03:00 lastUpdated: 2020-10-18T23:04:45+03:00 diff --git a/snippets/binarySearch.md b/snippets/binarySearch.md index 68986e711..a0c9b6fd0 100644 --- a/snippets/binarySearch.md +++ b/snippets/binarySearch.md @@ -1,5 +1,5 @@ --- -title: binarySearch +title: Binary search tags: algorithm,array,beginner firstSeen: 2020-12-28T12:35:44+02:00 lastUpdated: 2020-12-29T13:06:47+02:00 diff --git a/snippets/bind.md b/snippets/bind.md index 9b9cdff08..38cc137d3 100644 --- a/snippets/bind.md +++ b/snippets/bind.md @@ -1,5 +1,5 @@ --- -title: bind +title: Bind function context tags: function,object,advanced firstSeen: 2018-01-24T14:14:49+02:00 lastUpdated: 2020-10-18T23:04:45+03:00 diff --git a/snippets/bindAll.md b/snippets/bindAll.md index 0099ff492..af21f4975 100644 --- a/snippets/bindAll.md +++ b/snippets/bindAll.md @@ -1,5 +1,5 @@ --- -title: bindAll +title: Bind all object methods tags: object,function,intermediate firstSeen: 2018-01-26T14:14:53+02:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/bindKey.md b/snippets/bindKey.md index e4c519674..33efd1117 100644 --- a/snippets/bindKey.md +++ b/snippets/bindKey.md @@ -1,5 +1,5 @@ --- -title: bindKey +title: Bind object method tags: function,object,advanced firstSeen: 2018-01-24T14:22:43+02:00 lastUpdated: 2020-10-18T23:04:45+03:00 diff --git a/snippets/binomialCoefficient.md b/snippets/binomialCoefficient.md index a7c8f7d53..7f8bcc383 100644 --- a/snippets/binomialCoefficient.md +++ b/snippets/binomialCoefficient.md @@ -1,5 +1,5 @@ --- -title: binomialCoefficient +title: Binomial coefficient tags: math,algorithm,beginner firstSeen: 2018-02-14T12:34:02+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/both.md b/snippets/both.md index 15c5605e9..1454e4865 100644 --- a/snippets/both.md +++ b/snippets/both.md @@ -1,5 +1,5 @@ --- -title: both +title: Logical and for functions tags: function,logic,beginner unlisted: true firstSeen: 2020-05-13T11:35:36+03:00 diff --git a/snippets/bottomVisible.md b/snippets/bottomVisible.md index 6ad816e5a..0c390f088 100644 --- a/snippets/bottomVisible.md +++ b/snippets/bottomVisible.md @@ -1,5 +1,5 @@ --- -title: bottomVisible +title: Check if bottom of page is visible tags: browser,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/btoa.md b/snippets/btoa.md index 2484362ac..bc0c055eb 100644 --- a/snippets/btoa.md +++ b/snippets/btoa.md @@ -1,5 +1,5 @@ --- -title: btoa +title: Encode string to Base64 tags: node,string,beginner firstSeen: 2018-01-17T21:43:21+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/bubbleSort.md b/snippets/bubbleSort.md index 18557e451..3dc5ff662 100644 --- a/snippets/bubbleSort.md +++ b/snippets/bubbleSort.md @@ -1,5 +1,5 @@ --- -title: bubbleSort +title: Bubble sort tags: algorithm,array,beginner firstSeen: 2020-12-27T21:20:31+02:00 lastUpdated: 2020-12-29T12:18:58+02:00 diff --git a/snippets/bucketSort.md b/snippets/bucketSort.md index 665909c27..61efd9751 100644 --- a/snippets/bucketSort.md +++ b/snippets/bucketSort.md @@ -1,5 +1,5 @@ --- -title: bucketSort +title: Bucket sort tags: algorithm,array,intermediate firstSeen: 2020-12-28T22:11:56+02:00 lastUpdated: 2020-12-29T12:22:44+02:00 diff --git a/snippets/byteSize.md b/snippets/byteSize.md index 0a79c55e9..73d61d41b 100644 --- a/snippets/byteSize.md +++ b/snippets/byteSize.md @@ -1,5 +1,5 @@ --- -title: byteSize +title: Byte size of string tags: string,beginner firstSeen: 2017-12-29T14:30:34+02:00 lastUpdated: 2020-10-18T23:04:45+03:00 diff --git a/snippets/caesarCipher.md b/snippets/caesarCipher.md index f81fa4570..8f823518a 100644 --- a/snippets/caesarCipher.md +++ b/snippets/caesarCipher.md @@ -1,5 +1,5 @@ --- -title: caesarCipher +title: Caesar cipher tags: algorithm,string,beginner firstSeen: 2020-12-28T20:10:18+02:00 lastUpdated: 2020-12-29T12:29:21+02:00 diff --git a/snippets/call.md b/snippets/call.md index 1cf4c5d7a..cb51cafbe 100644 --- a/snippets/call.md +++ b/snippets/call.md @@ -1,5 +1,5 @@ --- -title: call +title: Call functions with context tags: function,advanced firstSeen: 2017-12-22T21:54:30+02:00 lastUpdated: 2021-06-13T13:50:25+03:00 diff --git a/snippets/capitalize.md b/snippets/capitalize.md index ca23974f6..ce13fbd91 100644 --- a/snippets/capitalize.md +++ b/snippets/capitalize.md @@ -1,5 +1,5 @@ --- -title: capitalize +title: Capitalize string tags: string,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/capitalizeEveryWord.md b/snippets/capitalizeEveryWord.md index 75951b47d..467171157 100644 --- a/snippets/capitalizeEveryWord.md +++ b/snippets/capitalizeEveryWord.md @@ -1,5 +1,5 @@ --- -title: capitalizeEveryWord +title: Capitalize every word tags: string,regexp,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/cartesianProduct.md b/snippets/cartesianProduct.md index 15854c1a6..ed179f3a8 100644 --- a/snippets/cartesianProduct.md +++ b/snippets/cartesianProduct.md @@ -1,5 +1,5 @@ --- -title: cartesianProduct +title: Cartesian product tags: math,array,beginner firstSeen: 2020-12-28T20:23:47+02:00 lastUpdated: 2020-12-29T12:31:43+02:00 diff --git a/snippets/castArray.md b/snippets/castArray.md index 6363592e7..ea97b5724 100644 --- a/snippets/castArray.md +++ b/snippets/castArray.md @@ -1,5 +1,5 @@ --- -title: castArray +title: Cast to array tags: type,array,beginner firstSeen: 2018-01-23T20:54:12+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/celsiusToFahrenheit.md b/snippets/celsiusToFahrenheit.md index 5dcaaffd3..5ae728dc4 100644 --- a/snippets/celsiusToFahrenheit.md +++ b/snippets/celsiusToFahrenheit.md @@ -1,5 +1,5 @@ --- -title: celsiusToFahrenheit +title: Celsius to Fahrenheit tags: math,beginner unlisted: true firstSeen: 2020-04-16T11:00:06+03:00 diff --git a/snippets/chainAsync.md b/snippets/chainAsync.md index 9b1ffcc57..6a5f24acf 100644 --- a/snippets/chainAsync.md +++ b/snippets/chainAsync.md @@ -1,5 +1,5 @@ --- -title: chainAsync +title: Chain async functions tags: function,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/changeLightness.md b/snippets/changeLightness.md index 568b38ce8..18be75a62 100644 --- a/snippets/changeLightness.md +++ b/snippets/changeLightness.md @@ -1,5 +1,5 @@ --- -title: changeLightness +title: Change color lightness tags: string,browser,regexp,intermediate firstSeen: 2020-10-30T17:38:31+02:00 lastUpdated: 2020-10-31T16:37:54+02:00 diff --git a/snippets/checkProp.md b/snippets/checkProp.md index be4387869..c18ad4dce 100644 --- a/snippets/checkProp.md +++ b/snippets/checkProp.md @@ -1,5 +1,5 @@ --- -title: checkProp +title: Check property tags: function,object,intermediate firstSeen: 2019-03-17T03:53:00+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/chunk.md b/snippets/chunk.md index 6587d728e..aabf94206 100644 --- a/snippets/chunk.md +++ b/snippets/chunk.md @@ -1,5 +1,5 @@ --- -title: chunk +title: Split into chunks tags: array,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-11-03T21:35:12+02:00 diff --git a/snippets/chunkIntoN.md b/snippets/chunkIntoN.md index dc3f4f5b9..acb4b66ae 100644 --- a/snippets/chunkIntoN.md +++ b/snippets/chunkIntoN.md @@ -1,5 +1,5 @@ --- -title: chunkIntoN +title: Split array into n chunks tags: array,intermediate firstSeen: 2020-05-04T13:00:46+03:00 lastUpdated: 2020-11-03T21:46:13+02:00 diff --git a/snippets/chunkify.md b/snippets/chunkify.md index 13ce22438..ab366eb33 100644 --- a/snippets/chunkify.md +++ b/snippets/chunkify.md @@ -1,5 +1,5 @@ --- -title: chunkify +title: Chunk interable tags: function,generator,array,advanced firstSeen: 2021-03-16T22:50:40+02:00 lastUpdated: 2021-03-16T22:50:40+02:00 diff --git a/snippets/clampNumber.md b/snippets/clampNumber.md index abaa9a1e9..a7ed5b7dd 100644 --- a/snippets/clampNumber.md +++ b/snippets/clampNumber.md @@ -1,5 +1,5 @@ --- -title: clampNumber +title: Clamp number tags: math,beginner firstSeen: 2017-12-20T19:19:18+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/cloneRegExp.md b/snippets/cloneRegExp.md index 5ebbb6558..a1adb0b87 100644 --- a/snippets/cloneRegExp.md +++ b/snippets/cloneRegExp.md @@ -1,5 +1,5 @@ --- -title: cloneRegExp +title: Clone RegExp tags: type,intermediate firstSeen: 2018-01-01T19:45:47+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/coalesce.md b/snippets/coalesce.md index 0ee5a201c..7c7811172 100644 --- a/snippets/coalesce.md +++ b/snippets/coalesce.md @@ -1,5 +1,5 @@ --- -title: coalesce +title: Argument coalescing tags: type,beginner firstSeen: 2017-12-17T10:08:55+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/coalesceFactory.md b/snippets/coalesceFactory.md index e0e4bb9b4..79c0e847a 100644 --- a/snippets/coalesceFactory.md +++ b/snippets/coalesceFactory.md @@ -1,11 +1,11 @@ --- -title: coalesceFactory +title: Argument coalescing factory tags: function,type,intermediate firstSeen: 2017-12-18T12:15:36+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 --- -Customizes a coalesce function that returns the first argument which is true based on the given validator. +Customizes a coalesce function that returns the first argument which is `true` based on the given validator. - Use `Array.prototype.find()` to return the first argument that returns `true` from the provided argument validation function, `valid`. diff --git a/snippets/collectInto.md b/snippets/collectInto.md index 7b4389dc3..d225c8981 100644 --- a/snippets/collectInto.md +++ b/snippets/collectInto.md @@ -1,5 +1,5 @@ --- -title: collectInto +title: Convert function to variadic tags: function,array,intermediate firstSeen: 2017-12-22T05:08:36+02:00 lastUpdated: 2021-06-13T13:50:25+03:00 diff --git a/snippets/colorize.md b/snippets/colorize.md index 8b163a7d6..3fe313653 100644 --- a/snippets/colorize.md +++ b/snippets/colorize.md @@ -1,5 +1,5 @@ --- -title: colorize +title: Colorize text tags: node,string,intermediate firstSeen: 2018-01-13T13:36:59+02:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/combine.md b/snippets/combine.md index 23732f29d..61976027e 100644 --- a/snippets/combine.md +++ b/snippets/combine.md @@ -1,5 +1,5 @@ --- -title: combine +title: Combine object arrays tags: array,object,intermediate firstSeen: 2020-10-04T00:26:51+03:00 lastUpdated: 2020-10-08T02:22:39+03:00 diff --git a/snippets/compact.md b/snippets/compact.md index a2aad3042..6ace62f30 100644 --- a/snippets/compact.md +++ b/snippets/compact.md @@ -1,5 +1,5 @@ --- -title: compact +title: Compact array tags: array,beginner firstSeen: 2017-12-14T08:19:15+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 @@ -14,6 +14,6 @@ const compact = arr => arr.filter(Boolean); ``` ```js -compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34]); +compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34]); // [ 1, 2, 3, 'a', 's', 34 ] ``` diff --git a/snippets/compactObject.md b/snippets/compactObject.md index e7481742b..f750e881d 100644 --- a/snippets/compactObject.md +++ b/snippets/compactObject.md @@ -1,5 +1,5 @@ --- -title: compactObject +title: Compact object tags: object,array,recursion,advanced firstSeen: 2020-11-27T13:57:41+02:00 lastUpdated: 2020-11-27T13:57:41+02:00 diff --git a/snippets/compactWhitespace.md b/snippets/compactWhitespace.md index fd39ed3e6..642ff7959 100644 --- a/snippets/compactWhitespace.md +++ b/snippets/compactWhitespace.md @@ -1,5 +1,5 @@ --- -title: compactWhitespace +title: Compact whitespaces tags: string,regexp,beginner firstSeen: 2018-12-12T19:11:33+02:00 lastUpdated: 2020-10-18T23:04:45+03:00 diff --git a/snippets/complement.md b/snippets/complement.md index 1b96ed930..8d9baf849 100644 --- a/snippets/complement.md +++ b/snippets/complement.md @@ -1,5 +1,5 @@ --- -title: complement +title: Logical complement tags: function,logic,beginner firstSeen: 2020-05-13T11:28:33+03:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/compose.md b/snippets/compose.md index 576090122..49be54a09 100644 --- a/snippets/compose.md +++ b/snippets/compose.md @@ -1,5 +1,5 @@ --- -title: compose +title: Compose functions tags: function,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/composeRight.md b/snippets/composeRight.md index 50d6753ff..da2d00764 100644 --- a/snippets/composeRight.md +++ b/snippets/composeRight.md @@ -1,5 +1,5 @@ --- -title: composeRight +title: Reverse compose functions tags: function,intermediate firstSeen: 2018-01-23T22:12:56+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/containsWhitespace.md b/snippets/containsWhitespace.md index 11086d21e..8f8d38c0a 100644 --- a/snippets/containsWhitespace.md +++ b/snippets/containsWhitespace.md @@ -1,5 +1,5 @@ --- -title: containsWhitespace +title: Check if string contains whitespace tags: string,regexp,beginner firstSeen: 2020-03-25T12:37:13+02:00 lastUpdated: 2020-10-18T23:04:45+03:00 diff --git a/snippets/converge.md b/snippets/converge.md index 953c40f9a..af2697617 100644 --- a/snippets/converge.md +++ b/snippets/converge.md @@ -1,5 +1,5 @@ --- -title: converge +title: Converge branching functions tags: function,intermediate firstSeen: 2018-02-07T12:23:04+02:00 lastUpdated: 2021-01-08T00:23:44+02:00 diff --git a/snippets/copySign.md b/snippets/copySign.md index ded165872..a194eb617 100644 --- a/snippets/copySign.md +++ b/snippets/copySign.md @@ -1,5 +1,5 @@ --- -title: copySign +title: Copy sign to number tags: math,beginner firstSeen: 2020-10-07T23:52:57+03:00 lastUpdated: 2020-10-07T23:52:57+03:00 diff --git a/snippets/copyToClipboard.md b/snippets/copyToClipboard.md index 9f6cc8d48..2db2e20a2 100644 --- a/snippets/copyToClipboard.md +++ b/snippets/copyToClipboard.md @@ -1,5 +1,5 @@ --- -title: copyToClipboard +title: Copy to clipboard tags: browser,string,event,advanced firstSeen: 2017-12-31T11:40:33+02:00 lastUpdated: 2022-01-11T09:32:04+02:00 diff --git a/snippets/copyToClipboardAsync.md b/snippets/copyToClipboardAsync.md index 8d29d4f8d..f78246260 100644 --- a/snippets/copyToClipboardAsync.md +++ b/snippets/copyToClipboardAsync.md @@ -1,5 +1,5 @@ --- -title: copyToClipboardAsync +title: Copy to clipboard async tags: browser,string,promise,advanced firstSeen: 2022-01-11T05:00:00-04:00 --- diff --git a/snippets/countBy.md b/snippets/countBy.md index e006521ba..3e70e8f28 100644 --- a/snippets/countBy.md +++ b/snippets/countBy.md @@ -1,5 +1,5 @@ --- -title: countBy +title: Count grouped elements tags: array,object,intermediate firstSeen: 2018-01-11T13:45:53+02:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/countOccurrences.md b/snippets/countOccurrences.md index 60359f0dc..8d9ca4054 100644 --- a/snippets/countOccurrences.md +++ b/snippets/countOccurrences.md @@ -1,5 +1,5 @@ --- -title: countOccurrences +title: Count occurrences tags: array,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-18T23:04:45+03:00 diff --git a/snippets/countSubstrings.md b/snippets/countSubstrings.md index 98bc36bca..25a4d5630 100644 --- a/snippets/countSubstrings.md +++ b/snippets/countSubstrings.md @@ -1,5 +1,5 @@ --- -title: countSubstrings +title: Count substrings of string tags: string,algorithm,beginner firstSeen: 2020-12-31T13:58:51+02:00 lastUpdated: 2021-01-08T00:23:44+02:00 diff --git a/snippets/countWeekDaysBetween.md b/snippets/countWeekDaysBetween.md index 35cdf605e..b9e03b0ba 100644 --- a/snippets/countWeekDaysBetween.md +++ b/snippets/countWeekDaysBetween.md @@ -1,5 +1,5 @@ --- -title: countWeekDaysBetween +title: Count weekdays between two dates tags: date,intermediate firstSeen: 2020-10-11T11:44:44+03:00 lastUpdated: 2020-10-20T11:21:07+03:00 diff --git a/snippets/counter.md b/snippets/counter.md index 15bd335ab..6f34225da 100644 --- a/snippets/counter.md +++ b/snippets/counter.md @@ -1,5 +1,5 @@ --- -title: counter +title: Counter tags: browser,advanced firstSeen: 2018-05-06T17:55:46+03:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/createDirIfNotExists.md b/snippets/createDirIfNotExists.md index 4fef6a026..91a02382b 100644 --- a/snippets/createDirIfNotExists.md +++ b/snippets/createDirIfNotExists.md @@ -1,5 +1,5 @@ --- -title: createDirIfNotExists +title: Create directory if not exists tags: node,beginner firstSeen: 2018-12-12T19:25:16+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/createElement.md b/snippets/createElement.md index 872c40338..fc6dfd823 100644 --- a/snippets/createElement.md +++ b/snippets/createElement.md @@ -1,5 +1,5 @@ --- -title: createElement +title: Create HTML element tags: browser,beginner firstSeen: 2018-01-05T18:21:44+02:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/createEventHub.md b/snippets/createEventHub.md index c8a031882..3d35808d1 100644 --- a/snippets/createEventHub.md +++ b/snippets/createEventHub.md @@ -1,5 +1,5 @@ --- -title: createEventHub +title: Create event hub tags: browser,event,advanced firstSeen: 2018-01-05T15:07:26+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/currentURL.md b/snippets/currentURL.md index 5f84e305c..910828aff 100644 --- a/snippets/currentURL.md +++ b/snippets/currentURL.md @@ -1,5 +1,5 @@ --- -title: currentURL +title: Current URL tags: browser,beginner firstSeen: 2017-12-18T11:05:03+02:00 lastUpdated: 2020-10-20T11:46:23+03:00 diff --git a/snippets/curry.md b/snippets/curry.md index 68a084130..46d9d77c3 100644 --- a/snippets/curry.md +++ b/snippets/curry.md @@ -1,5 +1,5 @@ --- -title: curry +title: Curry function tags: function,recursion,advanced firstSeen: 2017-12-10T15:21:35+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/cycleGenerator.md b/snippets/cycleGenerator.md index 95355e41c..7529d0b28 100644 --- a/snippets/cycleGenerator.md +++ b/snippets/cycleGenerator.md @@ -1,5 +1,5 @@ --- -title: cycleGenerator +title: Cycle generator tags: function,generator,advanced firstSeen: 2020-10-11T17:05:38+03:00 lastUpdated: 2020-10-11T17:05:38+03:00