diff --git a/snippet-template.md b/snippet-template.md index c316bb613..c9ec74581 100644 --- a/snippet-template.md +++ b/snippet-template.md @@ -1,5 +1,5 @@ --- -title: functionName +title: Function name tags: array,intermediate firstSeen: 2021-06-13T05:00:00-04:00 --- 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/HSBToRGB.md b/snippets/HSBToRGB.md index 628bb7d58..fcd7b1c96 100644 --- a/snippets/HSBToRGB.md +++ b/snippets/HSBToRGB.md @@ -1,5 +1,5 @@ --- -title: HSBToRGB +title: HSB to RGB tags: math,intermediate firstSeen: 2020-09-18T14:25:07+03:00 lastUpdated: 2020-09-18T14:25:07+03:00 diff --git a/snippets/HSLToRGB.md b/snippets/HSLToRGB.md index 8045f4efd..3a8d38be2 100644 --- a/snippets/HSLToRGB.md +++ b/snippets/HSLToRGB.md @@ -1,5 +1,5 @@ --- -title: HSLToRGB +title: HSL to RGB tags: math,intermediate firstSeen: 2020-10-01T23:15:49+03:00 lastUpdated: 2020-10-04T11:24:27+03:00 diff --git a/snippets/JSONToFile.md b/snippets/JSONToFile.md index e42f5eb04..2dbf4f828 100644 --- a/snippets/JSONToFile.md +++ b/snippets/JSONToFile.md @@ -1,5 +1,5 @@ --- -title: JSONToFile +title: JSON to file tags: node,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/JSONtoCSV.md b/snippets/JSONtoCSV.md index 579f7c232..bf11f02f5 100644 --- a/snippets/JSONtoCSV.md +++ b/snippets/JSONtoCSV.md @@ -1,5 +1,5 @@ --- -title: JSONtoCSV +title: JSON to CSV tags: array,string,object,advanced firstSeen: 2018-07-06T20:25:46+03:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/RGBToHSB.md b/snippets/RGBToHSB.md index e70d52e97..a79c42426 100644 --- a/snippets/RGBToHSB.md +++ b/snippets/RGBToHSB.md @@ -1,5 +1,5 @@ --- -title: RGBToHSB +title: RGB to HSB tags: math,intermediate firstSeen: 2020-09-18T14:25:07+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/RGBToHSL.md b/snippets/RGBToHSL.md index b5825187c..a59296b62 100644 --- a/snippets/RGBToHSL.md +++ b/snippets/RGBToHSL.md @@ -1,5 +1,5 @@ --- -title: RGBToHSL +title: RGB to HSL tags: math,intermediate firstSeen: 2020-10-01T23:16:30+03:00 lastUpdated: 2020-10-04T11:25:12+03:00 diff --git a/snippets/RGBToHex.md b/snippets/RGBToHex.md index 4eeb174e5..8638f7414 100644 --- a/snippets/RGBToHex.md +++ b/snippets/RGBToHex.md @@ -1,5 +1,5 @@ --- -title: RGBToHex +title: RGB to hex tags: string,math,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/URLJoin.md b/snippets/URLJoin.md index e7d3febf1..dbdcd74d1 100644 --- a/snippets/URLJoin.md +++ b/snippets/URLJoin.md @@ -1,5 +1,5 @@ --- -title: URLJoin +title: Join URL segments tags: string,regexp,advanced firstSeen: 2018-01-16T15:53:03+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/UUIDGeneratorBrowser.md b/snippets/UUIDGeneratorBrowser.md index c46cdcbe9..602d4fb7b 100644 --- a/snippets/UUIDGeneratorBrowser.md +++ b/snippets/UUIDGeneratorBrowser.md @@ -1,5 +1,5 @@ --- -title: UUIDGeneratorBrowser +title: Generate UUID (browser) tags: browser,random,intermediate firstSeen: 2017-12-29T09:47:10+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/UUIDGeneratorNode.md b/snippets/UUIDGeneratorNode.md index e023f26ec..2eda7ff67 100644 --- a/snippets/UUIDGeneratorNode.md +++ b/snippets/UUIDGeneratorNode.md @@ -1,5 +1,5 @@ --- -title: UUIDGeneratorNode +title: Generate UUID (Node.js) tags: node,random,intermediate firstSeen: 2017-12-29T09:47:10+02:00 lastUpdated: 2020-10-22T20:24:44+03: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 diff --git a/snippets/dateRangeGenerator.md b/snippets/dateRangeGenerator.md index ed5bef748..1c3648545 100644 --- a/snippets/dateRangeGenerator.md +++ b/snippets/dateRangeGenerator.md @@ -1,5 +1,5 @@ --- -title: dateRangeGenerator +title: Date range generator tags: date,function,generator,advanced firstSeen: 2021-06-21T05:00:00-04:00 --- diff --git a/snippets/dayName.md b/snippets/dayName.md index 4c64a969c..df79f78ad 100644 --- a/snippets/dayName.md +++ b/snippets/dayName.md @@ -1,5 +1,5 @@ --- -title: dayName +title: Day name tags: date,beginner firstSeen: 2020-10-04T00:31:08+03:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/dayOfYear.md b/snippets/dayOfYear.md index 417544e79..4a886824a 100644 --- a/snippets/dayOfYear.md +++ b/snippets/dayOfYear.md @@ -1,5 +1,5 @@ --- -title: dayOfYear +title: Day of year tags: date,beginner firstSeen: 2018-09-29T13:22:20+03:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/daysAgo.md b/snippets/daysAgo.md index c29b909e2..08dc6cfb4 100644 --- a/snippets/daysAgo.md +++ b/snippets/daysAgo.md @@ -1,5 +1,5 @@ --- -title: daysAgo +title: Days ago tags: date,beginner firstSeen: 2020-10-06T05:35:23+03:00 lastUpdated: 2022-01-30T11:48:07+03:00 diff --git a/snippets/daysFromNow.md b/snippets/daysFromNow.md index 6c6a913a5..a96304c86 100644 --- a/snippets/daysFromNow.md +++ b/snippets/daysFromNow.md @@ -1,5 +1,5 @@ --- -title: daysFromNow +title: Days from now tags: date,beginner firstSeen: 2020-10-09T02:49:17+03:00 lastUpdated: 2022-01-30T11:48:07+03:00 diff --git a/snippets/daysInMonth.md b/snippets/daysInMonth.md index fa0bf47aa..03400a80d 100644 --- a/snippets/daysInMonth.md +++ b/snippets/daysInMonth.md @@ -1,5 +1,5 @@ --- -title: daysInMonth +title: Number of days in month tags: date,beginner firstSeen: 2021-06-13T05:00:00-04:00 --- diff --git a/snippets/debounce.md b/snippets/debounce.md index 0ee05812e..6b6314539 100644 --- a/snippets/debounce.md +++ b/snippets/debounce.md @@ -1,5 +1,5 @@ --- -title: debounce +title: Debounce function tags: function,intermediate firstSeen: 2018-01-28T15:18:26+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/debouncePromise.md b/snippets/debouncePromise.md index f3e8c916d..748811727 100644 --- a/snippets/debouncePromise.md +++ b/snippets/debouncePromise.md @@ -1,5 +1,5 @@ --- -title: debouncePromise +title: Debounce promise tags: function,promise,advanced firstSeen: 2020-10-10T21:09:04+03:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/decapitalize.md b/snippets/decapitalize.md index af25fe812..018315370 100644 --- a/snippets/decapitalize.md +++ b/snippets/decapitalize.md @@ -1,5 +1,5 @@ --- -title: decapitalize +title: Decapitalize string tags: string,intermediate firstSeen: 2018-01-11T11:58:40+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/deepClone.md b/snippets/deepClone.md index 1b758c089..f58d1d1af 100644 --- a/snippets/deepClone.md +++ b/snippets/deepClone.md @@ -1,5 +1,5 @@ --- -title: deepClone +title: Deep clone object tags: object,recursion,advanced firstSeen: 2018-01-23T20:48:46+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/deepFlatten.md b/snippets/deepFlatten.md index 789b654b6..74efeb242 100644 --- a/snippets/deepFlatten.md +++ b/snippets/deepFlatten.md @@ -1,5 +1,5 @@ --- -title: deepFlatten +title: Deep flatten array tags: array,recursion,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/deepFreeze.md b/snippets/deepFreeze.md index 916b2ad64..88a54d1ec 100644 --- a/snippets/deepFreeze.md +++ b/snippets/deepFreeze.md @@ -1,5 +1,5 @@ --- -title: deepFreeze +title: Deep freeze object tags: object,recursion,intermediate firstSeen: 2018-08-25T18:54:16+03:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/deepGet.md b/snippets/deepGet.md index 685566aca..af1702cd5 100644 --- a/snippets/deepGet.md +++ b/snippets/deepGet.md @@ -1,5 +1,5 @@ --- -title: deepGet +title: Get nested value in object based on array of keys tags: object,intermediate firstSeen: 2019-05-09T13:30:52+03:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/deepMapKeys.md b/snippets/deepMapKeys.md index 1be991065..1f15a4ad2 100644 --- a/snippets/deepMapKeys.md +++ b/snippets/deepMapKeys.md @@ -1,5 +1,5 @@ --- -title: deepMapKeys +title: Deep map object keys tags: object,recursion,advanced firstSeen: 2018-11-29T15:22:53+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/deepMerge.md b/snippets/deepMerge.md index 60a5a987f..c83018646 100644 --- a/snippets/deepMerge.md +++ b/snippets/deepMerge.md @@ -1,5 +1,5 @@ --- -title: deepMerge +title: Deep merge objects tags: object,function,advanced firstSeen: 2021-07-25T05:00:00-04:00 --- diff --git a/snippets/defaults.md b/snippets/defaults.md index f86be5caf..67c56628a 100644 --- a/snippets/defaults.md +++ b/snippets/defaults.md @@ -1,5 +1,5 @@ --- -title: defaults +title: Assign default values for object properties tags: object,intermediate firstSeen: 2018-01-19T13:51:05+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/defer.md b/snippets/defer.md index b8e08461f..36efb5ac9 100644 --- a/snippets/defer.md +++ b/snippets/defer.md @@ -1,5 +1,5 @@ --- -title: defer +title: Defer function invocation tags: function,intermediate firstSeen: 2018-01-01T23:40:31+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/degreesToRads.md b/snippets/degreesToRads.md index b8191fab3..7b941602c 100644 --- a/snippets/degreesToRads.md +++ b/snippets/degreesToRads.md @@ -1,5 +1,5 @@ --- -title: degreesToRads +title: Degrees to radians tags: math,beginner firstSeen: 2018-02-14T12:24:50+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 @@ -15,4 +15,4 @@ const degreesToRads = deg => (deg * Math.PI) / 180.0; ```js degreesToRads(90.0); // ~1.5708 -``` \ No newline at end of file +``` diff --git a/snippets/delay.md b/snippets/delay.md index 4532da969..0d8450dad 100644 --- a/snippets/delay.md +++ b/snippets/delay.md @@ -1,5 +1,5 @@ --- -title: delay +title: Delay function execution tags: function,intermediate firstSeen: 2018-01-24T14:32:20+02:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/detectDeviceType.md b/snippets/detectDeviceType.md index 95fed43b8..fc0fc7831 100644 --- a/snippets/detectDeviceType.md +++ b/snippets/detectDeviceType.md @@ -1,5 +1,5 @@ --- -title: detectDeviceType +title: Detect device type tags: browser,regexp,intermediate firstSeen: 2017-12-24T09:39:23+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/detectLanguage.md b/snippets/detectLanguage.md index 109f109a1..4f70fe435 100644 --- a/snippets/detectLanguage.md +++ b/snippets/detectLanguage.md @@ -1,5 +1,5 @@ --- -title: detectLanguage +title: Detect language tags: browser,intermediate firstSeen: 2020-10-05T18:03:26+03:00 lastUpdated: 2020-10-06T18:47:16+03:00 diff --git a/snippets/difference.md b/snippets/difference.md index aeb1b381c..580794331 100644 --- a/snippets/difference.md +++ b/snippets/difference.md @@ -1,5 +1,5 @@ --- -title: difference +title: Array difference tags: array,beginner firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/differenceBy.md b/snippets/differenceBy.md index d1d4c87f1..c3406331f 100644 --- a/snippets/differenceBy.md +++ b/snippets/differenceBy.md @@ -1,5 +1,5 @@ --- -title: differenceBy +title: Mapped array difference tags: array,intermediate firstSeen: 2018-01-24T11:49:03+02:00 lastUpdated: 2020-10-19T18:52:00+03:00 diff --git a/snippets/differenceWith.md b/snippets/differenceWith.md index d69daea66..48259862d 100644 --- a/snippets/differenceWith.md +++ b/snippets/differenceWith.md @@ -1,5 +1,5 @@ --- -title: differenceWith +title: Array difference based on function tags: array,intermediate firstSeen: 2017-12-19T12:32:24+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/dig.md b/snippets/dig.md index 95b1bb163..839f933c0 100644 --- a/snippets/dig.md +++ b/snippets/dig.md @@ -1,5 +1,5 @@ --- -title: dig +title: Get nested value in object tags: object,recursion,intermediate firstSeen: 2018-07-08T23:06:24+03:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/digitize.md b/snippets/digitize.md index e6b1a7426..f1b525933 100644 --- a/snippets/digitize.md +++ b/snippets/digitize.md @@ -1,5 +1,5 @@ --- -title: digitize +title: Digitize number tags: math,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-18T14:58:09+03:00 diff --git a/snippets/distance.md b/snippets/distance.md index e27e2eeef..2c60cd46c 100644 --- a/snippets/distance.md +++ b/snippets/distance.md @@ -1,5 +1,5 @@ --- -title: distance +title: Distance between two points tags: math,algorithm,beginner firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/divmod.md b/snippets/divmod.md index 8881cc5bf..deb5d5b22 100644 --- a/snippets/divmod.md +++ b/snippets/divmod.md @@ -1,5 +1,5 @@ --- -title: divmod +title: Quotient and module of division tags: math,beginner firstSeen: 2020-10-07T23:59:13+03:00 lastUpdated: 2020-10-07T23:59:13+03:00 diff --git a/snippets/drop.md b/snippets/drop.md index f478051c5..7c62b0694 100644 --- a/snippets/drop.md +++ b/snippets/drop.md @@ -1,5 +1,5 @@ --- -title: drop +title: Drop list elements from the left tags: array,beginner firstSeen: 2018-01-26T12:23:18+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/dropRight.md b/snippets/dropRight.md index f21ebf618..2a15b7962 100644 --- a/snippets/dropRight.md +++ b/snippets/dropRight.md @@ -1,5 +1,5 @@ --- -title: dropRight +title: Drop list elements from the right tags: array,beginner firstSeen: 2017-12-19T12:06:47+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/dropRightWhile.md b/snippets/dropRightWhile.md index c140420f1..3406d798e 100644 --- a/snippets/dropRightWhile.md +++ b/snippets/dropRightWhile.md @@ -1,5 +1,5 @@ --- -title: dropRightWhile +title: Drop list elements from the right based on function tags: array,intermediate firstSeen: 2018-01-26T12:23:18+02:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/dropWhile.md b/snippets/dropWhile.md index d9a3d970b..78dfe523a 100644 --- a/snippets/dropWhile.md +++ b/snippets/dropWhile.md @@ -1,5 +1,5 @@ --- -title: dropWhile +title: Drop list elements from the left based on function tags: array,intermediate firstSeen: 2018-01-26T12:23:18+02:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/either.md b/snippets/either.md index c54cd8355..34be43f42 100644 --- a/snippets/either.md +++ b/snippets/either.md @@ -1,5 +1,5 @@ --- -title: either +title: Logical or for functions tags: function,logic,beginner firstSeen: 2020-05-13T11:35:46+03:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/elementContains.md b/snippets/elementContains.md index 66ccc4961..eb85564b2 100644 --- a/snippets/elementContains.md +++ b/snippets/elementContains.md @@ -1,5 +1,5 @@ --- -title: elementContains +title: Element contains another element tags: browser,intermediate firstSeen: 2018-06-19T20:57:58+03:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/elementIsFocused.md b/snippets/elementIsFocused.md index 35a62772d..37f5d3061 100644 --- a/snippets/elementIsFocused.md +++ b/snippets/elementIsFocused.md @@ -1,5 +1,5 @@ --- -title: elementIsFocused +title: Element is focused tags: browser,beginner firstSeen: 2020-08-07T15:21:27+03:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/elementIsVisibleInViewport.md b/snippets/elementIsVisibleInViewport.md index b19632c42..17e7bb9c7 100644 --- a/snippets/elementIsVisibleInViewport.md +++ b/snippets/elementIsVisibleInViewport.md @@ -1,5 +1,5 @@ --- -title: elementIsVisibleInViewport +title: Element is visible in viewport tags: browser,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/equals.md b/snippets/equals.md index 3913a582c..6a019a685 100644 --- a/snippets/equals.md +++ b/snippets/equals.md @@ -1,5 +1,5 @@ --- -title: equals +title: Check object equality tags: object,array,type,recursion,advanced firstSeen: 2018-01-15T18:34:11+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/escapeHTML.md b/snippets/escapeHTML.md index af9ab9aaf..d5f32f77a 100644 --- a/snippets/escapeHTML.md +++ b/snippets/escapeHTML.md @@ -1,5 +1,5 @@ --- -title: escapeHTML +title: Escape HTML tags: string,browser,regexp,intermediate firstSeen: 2017-12-29T15:09:21+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/escapeRegExp.md b/snippets/escapeRegExp.md index 093c4961e..cf84297ac 100644 --- a/snippets/escapeRegExp.md +++ b/snippets/escapeRegExp.md @@ -1,5 +1,5 @@ --- -title: escapeRegExp +title: Escape RegExp tags: string,regexp,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/euclideanDistance.md b/snippets/euclideanDistance.md index cc438ecae..8dfacb92c 100644 --- a/snippets/euclideanDistance.md +++ b/snippets/euclideanDistance.md @@ -1,5 +1,5 @@ --- -title: euclideanDistance +title: Euclidean distance tags: math,algorithm,intermediate firstSeen: 2020-12-28T13:41:19+02:00 lastUpdated: 2020-12-28T13:41:19+02:00 diff --git a/snippets/everyNth.md b/snippets/everyNth.md index e462600f0..ff432aee8 100644 --- a/snippets/everyNth.md +++ b/snippets/everyNth.md @@ -1,5 +1,5 @@ --- -title: everyNth +title: Every nth element tags: array,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/expandTabs.md b/snippets/expandTabs.md index fca2e54b4..645286951 100644 --- a/snippets/expandTabs.md +++ b/snippets/expandTabs.md @@ -1,5 +1,5 @@ --- -title: expandTabs +title: Expand tabs into spaces tags: string,regexp,beginner firstSeen: 2020-06-01T17:05:39+03:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/extendHex.md b/snippets/extendHex.md index 93d01505c..e9ba693e0 100644 --- a/snippets/extendHex.md +++ b/snippets/extendHex.md @@ -1,5 +1,5 @@ --- -title: extendHex +title: Extend hex value tags: string,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/factorial.md b/snippets/factorial.md index 9be5d5518..e46c26032 100644 --- a/snippets/factorial.md +++ b/snippets/factorial.md @@ -1,5 +1,5 @@ --- -title: factorial +title: Factorial of number tags: math,algorithm,recursion,beginner firstSeen: 2017-12-07T14:41:33+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/fahrenheitToCelsius.md b/snippets/fahrenheitToCelsius.md index 472164a55..9cbcf11a9 100644 --- a/snippets/fahrenheitToCelsius.md +++ b/snippets/fahrenheitToCelsius.md @@ -1,5 +1,5 @@ --- -title: fahrenheitToCelsius +title: Fahrenheit to Celsius tags: math,beginner unlisted: true firstSeen: 2020-04-16T11:00:06+03:00 diff --git a/snippets/fibonacci.md b/snippets/fibonacci.md index 4cae957c3..3d7afa6b0 100644 --- a/snippets/fibonacci.md +++ b/snippets/fibonacci.md @@ -1,5 +1,5 @@ --- -title: fibonacci +title: Fibonacci tags: math,algorithm,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/filterNonUnique.md b/snippets/filterNonUnique.md index 6acc4a660..72e130b93 100644 --- a/snippets/filterNonUnique.md +++ b/snippets/filterNonUnique.md @@ -1,5 +1,5 @@ --- -title: filterNonUnique +title: Filter non-unique array values tags: array,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-11-02T19:40:45+02:00 diff --git a/snippets/filterNonUniqueBy.md b/snippets/filterNonUniqueBy.md index 3e8afc85c..33ee3ff87 100644 --- a/snippets/filterNonUniqueBy.md +++ b/snippets/filterNonUniqueBy.md @@ -1,5 +1,5 @@ --- -title: filterNonUniqueBy +title: Filter non-unique array values based on function tags: array,intermediate firstSeen: 2018-07-18T20:40:53+03:00 lastUpdated: 2020-11-02T19:40:27+02:00 diff --git a/snippets/filterUnique.md b/snippets/filterUnique.md index e4d2f09a8..ff9abc3cc 100644 --- a/snippets/filterUnique.md +++ b/snippets/filterUnique.md @@ -1,5 +1,5 @@ --- -title: filterUnique +title: Filter unique array values tags: array,beginner firstSeen: 2020-11-02T19:41:00+02:00 lastUpdated: 2020-11-02T19:41:00+02:00 diff --git a/snippets/filterUniqueBy.md b/snippets/filterUniqueBy.md index cf6972bcb..e8b68944f 100644 --- a/snippets/filterUniqueBy.md +++ b/snippets/filterUniqueBy.md @@ -1,5 +1,5 @@ --- -title: filterUniqueBy +title: Filter unique array values based on function tags: array,intermediate firstSeen: 2020-11-02T19:41:07+02:00 lastUpdated: 2020-11-02T19:41:07+02:00 diff --git a/snippets/findClosestAnchor.md b/snippets/findClosestAnchor.md index 6ea2aa647..05f49bf1e 100644 --- a/snippets/findClosestAnchor.md +++ b/snippets/findClosestAnchor.md @@ -1,5 +1,5 @@ --- -title: findClosestAnchor +title: Find closest anchor tags: browser,intermediate firstSeen: 2021-04-22T08:45:39+03:00 lastUpdated: 2021-04-22T08:45:39+03:00 diff --git a/snippets/findClosestMatchingNode.md b/snippets/findClosestMatchingNode.md index 9187e0c09..127358c25 100644 --- a/snippets/findClosestMatchingNode.md +++ b/snippets/findClosestMatchingNode.md @@ -1,5 +1,5 @@ --- -title: findClosestMatchingNode +title: Find closest matching node tags: browser,intermediate firstSeen: 2021-04-22T08:45:39+03:00 lastUpdated: 2021-04-22T08:45:39+03:00 diff --git a/snippets/findFirstN.md b/snippets/findFirstN.md index 55875f4dd..88e470ddc 100644 --- a/snippets/findFirstN.md +++ b/snippets/findFirstN.md @@ -1,5 +1,5 @@ --- -title: findFirstN +title: Find first n matches tags: array,intermediate firstSeen: 2021-05-09T13:31:36+03:00 lastUpdated: 2021-05-09T13:31:36+03:00 diff --git a/snippets/findKey.md b/snippets/findKey.md index 6e14a1de3..fe4c053e9 100644 --- a/snippets/findKey.md +++ b/snippets/findKey.md @@ -1,5 +1,5 @@ --- -title: findKey +title: Find first matching key tags: object,intermediate firstSeen: 2018-01-23T18:23:20+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/findKeys.md b/snippets/findKeys.md index 942dad8b6..a5c7d6547 100644 --- a/snippets/findKeys.md +++ b/snippets/findKeys.md @@ -1,5 +1,5 @@ --- -title: findKeys +title: Find matching keys tags: object,beginner firstSeen: 2020-10-25T09:59:13+02:00 lastUpdated: 2020-11-15T14:43:44+02:00 diff --git a/snippets/findLast.md b/snippets/findLast.md index 97b66dedd..02fdb815a 100644 --- a/snippets/findLast.md +++ b/snippets/findLast.md @@ -1,5 +1,5 @@ --- -title: findLast +title: Find last matching value tags: array,beginner firstSeen: 2018-01-11T13:51:58+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/findLastIndex.md b/snippets/findLastIndex.md index cfc0608b2..87867106b 100644 --- a/snippets/findLastIndex.md +++ b/snippets/findLastIndex.md @@ -1,5 +1,5 @@ --- -title: findLastIndex +title: Find last matching index tags: array,intermediate firstSeen: 2018-01-24T13:01:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/findLastKey.md b/snippets/findLastKey.md index 9f7ad855a..2d1b21db0 100644 --- a/snippets/findLastKey.md +++ b/snippets/findLastKey.md @@ -1,5 +1,5 @@ --- -title: findLastKey +title: Find last matching key tags: object,intermediate firstSeen: 2018-01-23T18:23:20+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/findLastN.md b/snippets/findLastN.md index 1ad08e454..41ff8b8c5 100644 --- a/snippets/findLastN.md +++ b/snippets/findLastN.md @@ -1,5 +1,5 @@ --- -title: findLastN +title: Find last n matches tags: array,intermediate firstSeen: 2021-05-09T13:31:36+03:00 lastUpdated: 2021-05-09T13:31:36+03:00 diff --git a/snippets/flatten.md b/snippets/flatten.md index ec3f00e3e..d49bde227 100644 --- a/snippets/flatten.md +++ b/snippets/flatten.md @@ -1,5 +1,5 @@ --- -title: flatten +title: Flatten array tags: array,recursion,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/flattenObject.md b/snippets/flattenObject.md index a4b1f4418..8495c2b02 100644 --- a/snippets/flattenObject.md +++ b/snippets/flattenObject.md @@ -1,5 +1,5 @@ --- -title: flattenObject +title: Flatten object tags: object,recursion,advanced firstSeen: 2018-02-07T11:30:18+02:00 lastUpdated: 2020-10-19T18:51:03+03:00 diff --git a/snippets/flip.md b/snippets/flip.md index 8fb22eeae..de01acd66 100644 --- a/snippets/flip.md +++ b/snippets/flip.md @@ -1,5 +1,5 @@ --- -title: flip +title: Flip function arguments tags: function,intermediate firstSeen: 2017-12-22T02:42:15+02:00 lastUpdated: 2021-06-13T13:50:25+03:00 diff --git a/snippets/forEachRight.md b/snippets/forEachRight.md index 0e5c64917..b7beea573 100644 --- a/snippets/forEachRight.md +++ b/snippets/forEachRight.md @@ -1,5 +1,5 @@ --- -title: forEachRight +title: Execute function for each array element in reverse tags: array,intermediate firstSeen: 2018-01-09T01:38:50+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/forOwn.md b/snippets/forOwn.md index bf259617b..9b81aaf6f 100644 --- a/snippets/forOwn.md +++ b/snippets/forOwn.md @@ -1,5 +1,5 @@ --- -title: forOwn +title: Iterate over object's own properties tags: object,intermediate firstSeen: 2018-01-18T16:45:56+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/forOwnRight.md b/snippets/forOwnRight.md index 7c41f033d..da72c9cb0 100644 --- a/snippets/forOwnRight.md +++ b/snippets/forOwnRight.md @@ -1,5 +1,5 @@ --- -title: forOwnRight +title: Iterate over object's own properties in reverse tags: object,intermediate firstSeen: 2018-01-18T16:45:56+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/formToObject.md b/snippets/formToObject.md index f2f1377f8..ad3160f2f 100644 --- a/snippets/formToObject.md +++ b/snippets/formToObject.md @@ -1,5 +1,5 @@ --- -title: formToObject +title: Form to object tags: browser,object,intermediate firstSeen: 2019-03-13T14:50:06+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/formatDuration.md b/snippets/formatDuration.md index b851e305e..895d4f853 100644 --- a/snippets/formatDuration.md +++ b/snippets/formatDuration.md @@ -1,5 +1,5 @@ --- -title: formatDuration +title: Format duration tags: date,math,string,intermediate firstSeen: 2018-01-04T09:26:42+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/formatNumber.md b/snippets/formatNumber.md index e6cf3b56e..78019e10f 100644 --- a/snippets/formatNumber.md +++ b/snippets/formatNumber.md @@ -1,5 +1,5 @@ --- -title: formatNumber +title: Format number tags: string,math,beginner firstSeen: 2020-07-30T11:38:51+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/formatSeconds.md b/snippets/formatSeconds.md index 9cae1cee5..1df615afc 100644 --- a/snippets/formatSeconds.md +++ b/snippets/formatSeconds.md @@ -1,5 +1,5 @@ --- -title: formatSeconds +title: Number of seconds to ISO format tags: date,math,string,intermediate firstSeen: 2021-05-09T12:44:55+03:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/frequencies.md b/snippets/frequencies.md index b84e73cba..7eb7fd162 100644 --- a/snippets/frequencies.md +++ b/snippets/frequencies.md @@ -1,5 +1,5 @@ --- -title: frequencies +title: Value frequencies tags: array,object,intermediate firstSeen: 2020-01-03T15:32:35+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/fromCamelCase.md b/snippets/fromCamelCase.md index 889c9ae16..cd617d2fd 100644 --- a/snippets/fromCamelCase.md +++ b/snippets/fromCamelCase.md @@ -1,5 +1,5 @@ --- -title: fromCamelCase +title: String from camelcase tags: string,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 @@ -20,7 +20,7 @@ const fromCamelCase = (str, separator = '_') => ```js fromCamelCase('someDatabaseFieldName', ' '); // 'some database field name' -fromCamelCase('someLabelThatNeedsToBeDecamelized', '-'); +fromCamelCase('someLabelThatNeedsToBeDecamelized', '-'); // 'some-label-that-needs-to-be-decamelized' fromCamelCase('someJavascriptProperty', '_'); // 'some_javascript_property' fromCamelCase('JSONToCSV', '.'); // 'json.to.csv' diff --git a/snippets/fromTimestamp.md b/snippets/fromTimestamp.md index 31abaeaa2..a6a32c8c7 100644 --- a/snippets/fromTimestamp.md +++ b/snippets/fromTimestamp.md @@ -1,5 +1,5 @@ --- -title: fromTimestamp +title: Date from Unix timestamp tags: date,beginner firstSeen: 2020-10-15T21:57:17+03:00 lastUpdated: 2020-10-15T21:57:17+03:00 diff --git a/snippets/frozenSet.md b/snippets/frozenSet.md index 4e9cafe4c..6252d692c 100644 --- a/snippets/frozenSet.md +++ b/snippets/frozenSet.md @@ -1,5 +1,5 @@ --- -title: frozenSet +title: Freeze Set object tags: array,intermediate firstSeen: 2020-10-11T11:52:48+03:00 lastUpdated: 2020-10-11T11:52:48+03:00 diff --git a/snippets/fullscreen.md b/snippets/fullscreen.md index d6d4c4f9b..557d041a9 100644 --- a/snippets/fullscreen.md +++ b/snippets/fullscreen.md @@ -1,5 +1,5 @@ --- -title: fullscreen +title: Toggle fullscreen mode tags: browser,intermediate firstSeen: 2020-10-04T16:48:00+03:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/functionName.md b/snippets/functionName.md index f37c2a0d1..0c83c94ac 100644 --- a/snippets/functionName.md +++ b/snippets/functionName.md @@ -1,5 +1,5 @@ --- -title: functionName +title: Get function name tags: function,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/functions.md b/snippets/functions.md index 45642462e..45fce8d9c 100644 --- a/snippets/functions.md +++ b/snippets/functions.md @@ -1,5 +1,5 @@ --- -title: functions +title: Function property names tags: object,function,advanced firstSeen: 2018-01-11T21:18:58+02:00 lastUpdated: 2020-10-20T11:21:07+03:00 diff --git a/snippets/gcd.md b/snippets/gcd.md index 457557897..7f10c5faf 100644 --- a/snippets/gcd.md +++ b/snippets/gcd.md @@ -1,5 +1,5 @@ --- -title: gcd +title: Greatest common divisor tags: math,algorithm,recursion,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-12-29T12:36:50+02:00 diff --git a/snippets/generateItems.md b/snippets/generateItems.md index b2e52cb98..3fee71627 100644 --- a/snippets/generateItems.md +++ b/snippets/generateItems.md @@ -1,5 +1,5 @@ --- -title: generateItems +title: Generate items tags: array,function,intermediate firstSeen: 2020-10-09T20:41:21+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/generateUntil.md b/snippets/generateUntil.md index 39ce4870a..aea207821 100644 --- a/snippets/generateUntil.md +++ b/snippets/generateUntil.md @@ -1,5 +1,5 @@ --- -title: generateUntil +title: Generate until condition is met tags: function,generator,advanced firstSeen: 2022-01-21T05:00:00-04:00 --- diff --git a/snippets/generateWhile.md b/snippets/generateWhile.md index 123183362..0df354201 100644 --- a/snippets/generateWhile.md +++ b/snippets/generateWhile.md @@ -1,5 +1,5 @@ --- -title: generateWhile +title: Generate while condition is met tags: function,generator,advanced firstSeen: 2022-01-21T05:00:00-04:00 --- diff --git a/snippets/generatorToArray.md b/snippets/generatorToArray.md index 3c8c2013b..e25e216b3 100644 --- a/snippets/generatorToArray.md +++ b/snippets/generatorToArray.md @@ -1,5 +1,5 @@ --- -title: generatorToArray +title: Generator to array tags: function,array,generator,beginner firstSeen: 2020-12-31T13:22:18+02:00 lastUpdated: 2020-12-31T13:22:18+02:00 diff --git a/snippets/geometricProgression.md b/snippets/geometricProgression.md index 69fe49b3e..730742d11 100644 --- a/snippets/geometricProgression.md +++ b/snippets/geometricProgression.md @@ -1,5 +1,5 @@ --- -title: geometricProgression +title: Geometric progression tags: math,algorithm,intermediate firstSeen: 2018-01-03T09:36:23+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/get.md b/snippets/get.md index 1ab333c20..375c59aa0 100644 --- a/snippets/get.md +++ b/snippets/get.md @@ -1,5 +1,5 @@ --- -title: get +title: Get nested object property from path string tags: object,regexp,intermediate firstSeen: 2018-01-18T17:40:42+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getAncestors.md b/snippets/getAncestors.md index c8c90dc90..779b3735c 100644 --- a/snippets/getAncestors.md +++ b/snippets/getAncestors.md @@ -1,5 +1,5 @@ --- -title: getAncestors +title: Get element ancestors tags: browser,beginner firstSeen: 2020-10-15T09:28:34+03:00 lastUpdated: 2021-01-05T22:45:34+02:00 @@ -22,6 +22,6 @@ const getAncestors = el => { ``` ```js -getAncestors(document.querySelector('nav')); +getAncestors(document.querySelector('nav')); // [document, html, body, header, nav] ``` diff --git a/snippets/getBaseURL.md b/snippets/getBaseURL.md index 4de0c86e2..b6e66d1de 100644 --- a/snippets/getBaseURL.md +++ b/snippets/getBaseURL.md @@ -1,5 +1,5 @@ --- -title: getBaseURL +title: Get base URL tags: string,browser,regexp,beginner firstSeen: 2020-05-03T12:20:54+03:00 lastUpdated: 2021-01-03T20:32:13+02:00 diff --git a/snippets/getColonTimeFromDate.md b/snippets/getColonTimeFromDate.md index cf5d951a0..18b5a0fab 100644 --- a/snippets/getColonTimeFromDate.md +++ b/snippets/getColonTimeFromDate.md @@ -1,5 +1,5 @@ --- -title: getColonTimeFromDate +title: Get colon time from date tags: date,string,beginner firstSeen: 2018-01-13T17:14:48+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getDaysDiffBetweenDates.md b/snippets/getDaysDiffBetweenDates.md index b10bfbd8b..e02650e82 100644 --- a/snippets/getDaysDiffBetweenDates.md +++ b/snippets/getDaysDiffBetweenDates.md @@ -1,5 +1,5 @@ --- -title: getDaysDiffBetweenDates +title: Date difference in days tags: date,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2021-04-24T12:42:47+03:00 diff --git a/snippets/getElementsBiggerThanViewport.md b/snippets/getElementsBiggerThanViewport.md index 80fea6621..6931304c4 100644 --- a/snippets/getElementsBiggerThanViewport.md +++ b/snippets/getElementsBiggerThanViewport.md @@ -1,5 +1,5 @@ --- -title: getElementsBiggerThanViewport +title: Get elements bigger than viewport tags: browser,intermediate firstSeen: 2020-10-06T17:41:22+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/getHoursDiffBetweenDates.md b/snippets/getHoursDiffBetweenDates.md index e9468ac07..153420026 100644 --- a/snippets/getHoursDiffBetweenDates.md +++ b/snippets/getHoursDiffBetweenDates.md @@ -1,5 +1,5 @@ --- -title: getHoursDiffBetweenDates +title: Date difference in hours tags: date,beginner firstSeen: 2021-04-24T12:56:21+03:00 lastUpdated: 2021-04-24T12:56:21+03:00 diff --git a/snippets/getImages.md b/snippets/getImages.md index 266f22461..9aa624c4a 100644 --- a/snippets/getImages.md +++ b/snippets/getImages.md @@ -1,5 +1,5 @@ --- -title: getImages +title: Get all images in element tags: browser,intermediate firstSeen: 2018-10-07T16:24:36+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/getMeridiemSuffixOfInteger.md b/snippets/getMeridiemSuffixOfInteger.md index 4afbd71e4..17e9acd18 100644 --- a/snippets/getMeridiemSuffixOfInteger.md +++ b/snippets/getMeridiemSuffixOfInteger.md @@ -1,5 +1,5 @@ --- -title: getMeridiemSuffixOfInteger +title: Get meridiem suffix of integer tags: date,beginner firstSeen: 2018-01-13T17:14:48+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getMinutesDiffBetweenDates.md b/snippets/getMinutesDiffBetweenDates.md index 39f62639c..2a358d091 100644 --- a/snippets/getMinutesDiffBetweenDates.md +++ b/snippets/getMinutesDiffBetweenDates.md @@ -1,5 +1,5 @@ --- -title: getMinutesDiffBetweenDates +title: Date difference in minutes tags: date,beginner firstSeen: 2021-04-24T12:48:49+03:00 lastUpdated: 2021-04-24T12:48:49+03:00 diff --git a/snippets/getMonthsDiffBetweenDates.md b/snippets/getMonthsDiffBetweenDates.md index 8007f11e0..938289bbc 100644 --- a/snippets/getMonthsDiffBetweenDates.md +++ b/snippets/getMonthsDiffBetweenDates.md @@ -1,5 +1,5 @@ --- -title: getMonthsDiffBetweenDates +title: Date difference in months tags: date,intermediate firstSeen: 2020-08-07T15:15:26+03:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getParentsUntil.md b/snippets/getParentsUntil.md index 5490bd1ad..82a5291db 100644 --- a/snippets/getParentsUntil.md +++ b/snippets/getParentsUntil.md @@ -1,5 +1,5 @@ --- -title: getParentsUntil +title: Get parents until element matches selector tags: browser,intermediate firstSeen: 2021-01-05T22:47:21+02:00 lastUpdated: 2021-01-06T13:04:18+02:00 diff --git a/snippets/getProtocol.md b/snippets/getProtocol.md index 98f1af947..3b2dfb9ab 100644 --- a/snippets/getProtocol.md +++ b/snippets/getProtocol.md @@ -1,5 +1,5 @@ --- -title: getProtocol +title: Current page protocol tags: browser,beginner firstSeen: 2020-10-07T01:40:53+03:00 lastUpdated: 2020-10-20T11:46:23+03:00 diff --git a/snippets/getScrollPosition.md b/snippets/getScrollPosition.md index 6f35f77c0..0b1be4f4d 100644 --- a/snippets/getScrollPosition.md +++ b/snippets/getScrollPosition.md @@ -1,5 +1,5 @@ --- -title: getScrollPosition +title: Scroll position tags: browser,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getSecondsDiffBetweenDates.md b/snippets/getSecondsDiffBetweenDates.md index 5f7a147cd..bc7282c3e 100644 --- a/snippets/getSecondsDiffBetweenDates.md +++ b/snippets/getSecondsDiffBetweenDates.md @@ -1,5 +1,5 @@ --- -title: getSecondsDiffBetweenDates +title: Date difference in seconds tags: date,beginner firstSeen: 2021-04-24T12:39:48+03:00 lastUpdated: 2021-04-24T12:39:48+03:00 diff --git a/snippets/getSelectedText.md b/snippets/getSelectedText.md index 78da6d607..6b2a9935d 100644 --- a/snippets/getSelectedText.md +++ b/snippets/getSelectedText.md @@ -1,5 +1,5 @@ --- -title: getSelectedText +title: Get selected text tags: browser,beginner firstSeen: 2020-08-07T15:34:53+03:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getSiblings.md b/snippets/getSiblings.md index 6d995f644..96ab1b87b 100644 --- a/snippets/getSiblings.md +++ b/snippets/getSiblings.md @@ -1,5 +1,5 @@ --- -title: getSiblings +title: Array of element's siblings tags: browser,intermediate firstSeen: 2020-08-07T15:31:48+03:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getStyle.md b/snippets/getStyle.md index 9471edba0..bcb0f0f2f 100644 --- a/snippets/getStyle.md +++ b/snippets/getStyle.md @@ -1,5 +1,5 @@ --- -title: getStyle +title: Get style for element tags: browser,css,beginner firstSeen: 2017-12-29T00:08:17+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getTimestamp.md b/snippets/getTimestamp.md index fc90871a0..bade521a7 100644 --- a/snippets/getTimestamp.md +++ b/snippets/getTimestamp.md @@ -1,5 +1,5 @@ --- -title: getTimestamp +title: Unix timestamp from date tags: date,beginner firstSeen: 2020-10-08T17:15:56+03:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getType.md b/snippets/getType.md index 20781f449..1eaecd031 100644 --- a/snippets/getType.md +++ b/snippets/getType.md @@ -1,5 +1,5 @@ --- -title: getType +title: Type of value tags: type,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/getURLParameters.md b/snippets/getURLParameters.md index 2a607784d..0320449e4 100644 --- a/snippets/getURLParameters.md +++ b/snippets/getURLParameters.md @@ -1,5 +1,5 @@ --- -title: getURLParameters +title: URL parameters as object tags: browser,string,regexp,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/getVerticalOffset.md b/snippets/getVerticalOffset.md index 415937dc7..6981b1dc2 100644 --- a/snippets/getVerticalOffset.md +++ b/snippets/getVerticalOffset.md @@ -1,5 +1,5 @@ --- -title: getVerticalOffset +title: Vertical offset of element tags: browser,beginner firstSeen: 2021-01-05T22:41:09+02:00 lastUpdated: 2021-01-05T22:41:09+02:00 diff --git a/snippets/groupBy.md b/snippets/groupBy.md index ae486cd5f..837f9449b 100644 --- a/snippets/groupBy.md +++ b/snippets/groupBy.md @@ -1,5 +1,5 @@ --- -title: groupBy +title: Group array elements tags: array,object,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/hammingDistance.md b/snippets/hammingDistance.md index 81c052228..dec346243 100644 --- a/snippets/hammingDistance.md +++ b/snippets/hammingDistance.md @@ -1,5 +1,5 @@ --- -title: hammingDistance +title: Hamming distance tags: math,algorithm,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/hasClass.md b/snippets/hasClass.md index 078a14abd..461e65b0a 100644 --- a/snippets/hasClass.md +++ b/snippets/hasClass.md @@ -1,5 +1,5 @@ --- -title: hasClass +title: Check if HTML element has class tags: browser,css,beginner firstSeen: 2017-12-28T23:46:33+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/hasDuplicates.md b/snippets/hasDuplicates.md index 052c316ef..e9564cd49 100644 --- a/snippets/hasDuplicates.md +++ b/snippets/hasDuplicates.md @@ -1,5 +1,5 @@ --- -title: hasDuplicates +title: Check if array has duplicates tags: array,beginner firstSeen: 2020-10-22T20:23:09+03:00 lastUpdated: 2020-10-22T20:23:09+03:00 diff --git a/snippets/hasFlags.md b/snippets/hasFlags.md index 3b5952a84..f5b6ca895 100644 --- a/snippets/hasFlags.md +++ b/snippets/hasFlags.md @@ -1,5 +1,5 @@ --- -title: hasFlags +title: Check if process arguments contain flags tags: node,intermediate firstSeen: 2018-01-01T18:24:43+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/hasKey.md b/snippets/hasKey.md index 47bf3fd12..639a79bcb 100644 --- a/snippets/hasKey.md +++ b/snippets/hasKey.md @@ -1,5 +1,5 @@ --- -title: hasKey +title: Check if object has key tags: object,intermediate firstSeen: 2019-10-15T15:45:13+03:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/hasMany.md b/snippets/hasMany.md index 087c80922..1321a1869 100644 --- a/snippets/hasMany.md +++ b/snippets/hasMany.md @@ -1,5 +1,5 @@ --- -title: hasMany +title: Check if array has many matches tags: array,beginner firstSeen: 2021-07-11T05:00:00-04:00 --- diff --git a/snippets/hasOne.md b/snippets/hasOne.md index 1df6d6ace..9eb296567 100644 --- a/snippets/hasOne.md +++ b/snippets/hasOne.md @@ -1,5 +1,5 @@ --- -title: hasOne +title: Check if array has only one match tags: array,beginner firstSeen: 2021-07-04T05:00:00-04:00 --- diff --git a/snippets/hashBrowser.md b/snippets/hashBrowser.md index b173cef21..47ecb44e9 100644 --- a/snippets/hashBrowser.md +++ b/snippets/hashBrowser.md @@ -1,5 +1,5 @@ --- -title: hashBrowser +title: Calculate SHA-256 hash (browser) tags: browser,promise,advanced firstSeen: 2018-01-17T14:09:01+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/hashNode.md b/snippets/hashNode.md index 369ec5f75..40e21bdc2 100644 --- a/snippets/hashNode.md +++ b/snippets/hashNode.md @@ -1,5 +1,5 @@ --- -title: hashNode +title: Calculate SHA-256 hash (Node.js) tags: node,promise,advanced firstSeen: 2018-01-17T14:09:01+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/haveSameContents.md b/snippets/haveSameContents.md index d3a4ecbfd..93d89c3f4 100644 --- a/snippets/haveSameContents.md +++ b/snippets/haveSameContents.md @@ -1,5 +1,5 @@ --- -title: haveSameContents +title: Check if arrays have same contents tags: array,intermediate firstSeen: 2020-01-05T21:40:39+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/head.md b/snippets/head.md index 1a246df58..8e4e7acc1 100644 --- a/snippets/head.md +++ b/snippets/head.md @@ -1,5 +1,5 @@ --- -title: head +title: Head of array tags: array,beginner firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/heapsort.md b/snippets/heapsort.md index a6de95760..8c8ab42a3 100644 --- a/snippets/heapsort.md +++ b/snippets/heapsort.md @@ -1,5 +1,5 @@ --- -title: heapsort +title: Heap sort tags: algorithm,array,recursion,advanced firstSeen: 2020-12-28T22:48:09+02:00 lastUpdated: 2020-12-28T22:48:09+02:00 diff --git a/snippets/hexToRGB.md b/snippets/hexToRGB.md index bbd27066f..4bb820929 100644 --- a/snippets/hexToRGB.md +++ b/snippets/hexToRGB.md @@ -1,5 +1,5 @@ --- -title: hexToRGB +title: Hex to RGB tags: string,math,advanced firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/hide.md b/snippets/hide.md index fc9d6dd9b..54b29de78 100644 --- a/snippets/hide.md +++ b/snippets/hide.md @@ -1,5 +1,5 @@ --- -title: hide +title: Hide elements tags: browser,css,beginner firstSeen: 2017-12-28T23:33:21+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/httpDelete.md b/snippets/httpDelete.md index d3367d674..e661f5689 100644 --- a/snippets/httpDelete.md +++ b/snippets/httpDelete.md @@ -1,5 +1,5 @@ --- -title: httpDelete +title: HTTP delete tags: browser,intermediate firstSeen: 2020-04-16T11:21:33+03:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/httpGet.md b/snippets/httpGet.md index dc8d1a7b6..b4059b9b5 100644 --- a/snippets/httpGet.md +++ b/snippets/httpGet.md @@ -1,5 +1,5 @@ --- -title: httpGet +title: HTTP get tags: browser,intermediate firstSeen: 2018-01-08T18:21:52+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/httpPost.md b/snippets/httpPost.md index 28356d0b8..dd8d4024d 100644 --- a/snippets/httpPost.md +++ b/snippets/httpPost.md @@ -1,5 +1,5 @@ --- -title: httpPost +title: HTTP post tags: browser,intermediate firstSeen: 2018-01-08T22:07:02+02:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/httpPut.md b/snippets/httpPut.md index 72a01c560..3f3bd90ba 100644 --- a/snippets/httpPut.md +++ b/snippets/httpPut.md @@ -1,5 +1,5 @@ --- -title: httpPut +title: HTTP put tags: browser,intermediate firstSeen: 2020-04-16T11:21:33+03:00 lastUpdated: 2020-10-19T22:49:51+03:00 diff --git a/snippets/httpsRedirect.md b/snippets/httpsRedirect.md index 9c0a56405..2626c1fea 100644 --- a/snippets/httpsRedirect.md +++ b/snippets/httpsRedirect.md @@ -1,5 +1,5 @@ --- -title: httpsRedirect +title: Redirect to HTTPS tags: browser,intermediate firstSeen: 2017-12-21T08:33:56+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 @@ -20,6 +20,6 @@ const httpsRedirect = () => { ``` ```js -httpsRedirect(); +httpsRedirect(); // If you are on http://mydomain.com, you are redirected to https://mydomain.com ``` diff --git a/snippets/hz.md b/snippets/hz.md index 75e5311af..91be6cb0c 100644 --- a/snippets/hz.md +++ b/snippets/hz.md @@ -1,5 +1,5 @@ --- -title: hz +title: Hertz frequency of function tags: function,intermediate unlisted: true firstSeen: 2018-04-11T16:39:49+03:00 diff --git a/snippets/inRange.md b/snippets/inRange.md index 2abd45353..741f649fa 100644 --- a/snippets/inRange.md +++ b/snippets/inRange.md @@ -1,5 +1,5 @@ --- -title: inRange +title: Number in range tags: math,beginner firstSeen: 2017-12-20T18:33:58+02:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/includesAll.md b/snippets/includesAll.md index 148a0c503..77468b659 100644 --- a/snippets/includesAll.md +++ b/snippets/includesAll.md @@ -1,5 +1,5 @@ --- -title: includesAll +title: Check if array includes all values tags: array,beginner firstSeen: 2019-11-04T21:37:16+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/includesAny.md b/snippets/includesAny.md index 61250ee95..cc1c18070 100644 --- a/snippets/includesAny.md +++ b/snippets/includesAny.md @@ -1,5 +1,5 @@ --- -title: includesAny +title: Check if array includes any values tags: array,beginner firstSeen: 2019-11-03T23:49:17+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/indentString.md b/snippets/indentString.md index c8b3929e8..91db44bd6 100644 --- a/snippets/indentString.md +++ b/snippets/indentString.md @@ -1,5 +1,5 @@ --- -title: indentString +title: Indent string tags: string,beginner firstSeen: 2018-09-24T22:14:27+03:00 lastUpdated: 2020-11-01T20:50:57+02:00 diff --git a/snippets/indexBy.md b/snippets/indexBy.md index 507ea52a0..d4e560d25 100644 --- a/snippets/indexBy.md +++ b/snippets/indexBy.md @@ -1,5 +1,5 @@ --- -title: indexBy +title: Index array based on function tags: array,object,intermediate firstSeen: 2021-06-20T05:00:00-04:00 --- diff --git a/snippets/indexOfAll.md b/snippets/indexOfAll.md index 6209978da..97635ea1b 100644 --- a/snippets/indexOfAll.md +++ b/snippets/indexOfAll.md @@ -1,5 +1,5 @@ --- -title: indexOfAll +title: Index of all matches tags: array,intermediate firstSeen: 2018-01-06T12:07:56+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/indexOfSubstrings.md b/snippets/indexOfSubstrings.md index cf83b1f1c..5da721f92 100644 --- a/snippets/indexOfSubstrings.md +++ b/snippets/indexOfSubstrings.md @@ -1,5 +1,5 @@ --- -title: indexOfSubstrings +title: Index of substrings tags: string,algorithm,generator,intermediate firstSeen: 2020-12-31T13:58:51+02:00 lastUpdated: 2020-12-31T13:58:51+02:00 diff --git a/snippets/indexOn.md b/snippets/indexOn.md index 0f244395f..52ec111de 100644 --- a/snippets/indexOn.md +++ b/snippets/indexOn.md @@ -1,5 +1,5 @@ --- -title: indexOn +title: Array to object based on key tags: array,object,intermediate firstSeen: 2021-06-27T05:00:00-04:00 --- diff --git a/snippets/initial.md b/snippets/initial.md index 3c3063ca4..8231164be 100644 --- a/snippets/initial.md +++ b/snippets/initial.md @@ -1,5 +1,5 @@ --- -title: initial +title: Array without last element tags: array,beginner firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-11-03T21:46:13+02:00 diff --git a/snippets/initialize2DArray.md b/snippets/initialize2DArray.md index f966f6a3a..0389bc72d 100644 --- a/snippets/initialize2DArray.md +++ b/snippets/initialize2DArray.md @@ -1,5 +1,5 @@ --- -title: initialize2DArray +title: Initialize 2D array tags: array,intermediate firstSeen: 2017-12-19T23:38:18+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/initializeArrayWithRange.md b/snippets/initializeArrayWithRange.md index eef2febf9..1c5af8326 100644 --- a/snippets/initializeArrayWithRange.md +++ b/snippets/initializeArrayWithRange.md @@ -1,5 +1,5 @@ --- -title: initializeArrayWithRange +title: Initialize array with range tags: array,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/initializeArrayWithRangeRight.md b/snippets/initializeArrayWithRangeRight.md index df08bf21d..2eb0ad20a 100644 --- a/snippets/initializeArrayWithRangeRight.md +++ b/snippets/initializeArrayWithRangeRight.md @@ -1,5 +1,5 @@ --- -title: initializeArrayWithRangeRight +title: Initialize array with reversed range tags: array,intermediate firstSeen: 2018-01-16T17:09:39+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/initializeArrayWithValues.md b/snippets/initializeArrayWithValues.md index c56ad3d0c..969549257 100644 --- a/snippets/initializeArrayWithValues.md +++ b/snippets/initializeArrayWithValues.md @@ -1,5 +1,5 @@ --- -title: initializeArrayWithValues +title: Initialize array with values tags: array,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/initializeNDArray.md b/snippets/initializeNDArray.md index 4e3df9c80..0f7dd4540 100644 --- a/snippets/initializeNDArray.md +++ b/snippets/initializeNDArray.md @@ -1,5 +1,5 @@ --- -title: initializeNDArray +title: Initialize n-dimensional array tags: array,recursion,intermediate firstSeen: 2018-04-14T10:52:39+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/injectCSS.md b/snippets/injectCSS.md index d8568c07e..9d04d34b8 100644 --- a/snippets/injectCSS.md +++ b/snippets/injectCSS.md @@ -1,5 +1,5 @@ --- -title: injectCSS +title: Inject CSS tags: browser,css,intermediate firstSeen: 2020-10-15T22:18:00+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 @@ -23,6 +23,6 @@ const injectCSS = css => { ``` ```js -injectCSS('body { background-color: #000 }'); +injectCSS('body { background-color: #000 }'); // '' ``` diff --git a/snippets/insertAfter.md b/snippets/insertAfter.md index f0b95c9bd..9eab03ea9 100644 --- a/snippets/insertAfter.md +++ b/snippets/insertAfter.md @@ -1,5 +1,5 @@ --- -title: insertAfter +title: Insert HTML string after element tags: browser,beginner firstSeen: 2018-06-19T20:57:58+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/insertAt.md b/snippets/insertAt.md index 0cba31946..a70c6dcb2 100644 --- a/snippets/insertAt.md +++ b/snippets/insertAt.md @@ -1,5 +1,5 @@ --- -title: insertAt +title: Insert value at array index tags: array,intermediate firstSeen: 2020-05-22T09:07:35+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/insertBefore.md b/snippets/insertBefore.md index 0ae6528f4..b581087ff 100644 --- a/snippets/insertBefore.md +++ b/snippets/insertBefore.md @@ -1,5 +1,5 @@ --- -title: insertBefore +title: Insert HTML string before element tags: browser,beginner firstSeen: 2018-06-19T20:57:58+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/insertionSort.md b/snippets/insertionSort.md index 2f61cb235..02d53128c 100644 --- a/snippets/insertionSort.md +++ b/snippets/insertionSort.md @@ -1,5 +1,5 @@ --- -title: insertionSort +title: Insertion sort tags: algorithm,array,intermediate firstSeen: 2020-12-28T21:53:53+02:00 lastUpdated: 2020-12-28T21:53:53+02:00 diff --git a/snippets/intersection.md b/snippets/intersection.md index 85838ab30..fafe20532 100644 --- a/snippets/intersection.md +++ b/snippets/intersection.md @@ -1,5 +1,5 @@ --- -title: intersection +title: Array intersection tags: array,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/intersectionBy.md b/snippets/intersectionBy.md index 5163111dc..0dba4a62d 100644 --- a/snippets/intersectionBy.md +++ b/snippets/intersectionBy.md @@ -1,5 +1,5 @@ --- -title: intersectionBy +title: Array intersection based on function tags: array,intermediate firstSeen: 2018-01-24T12:53:18+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/intersectionWith.md b/snippets/intersectionWith.md index a75b3c0d5..fae9f8759 100644 --- a/snippets/intersectionWith.md +++ b/snippets/intersectionWith.md @@ -1,5 +1,5 @@ --- -title: intersectionWith +title: Array intersection based on function tags: array,intermediate firstSeen: 2018-01-24T12:53:18+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/invertKeyValues.md b/snippets/invertKeyValues.md index 53ea17878..a55d872e3 100644 --- a/snippets/invertKeyValues.md +++ b/snippets/invertKeyValues.md @@ -1,11 +1,11 @@ --- -title: invertKeyValues +title: Invert object tags: object,advanced firstSeen: 2018-01-01T17:33:46+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 --- -Inverts the key-value pairs of an object, without mutating it. +Inverts the key-value pairs of an object, without mutating it. - Use `Object.keys()` and `Array.prototype.reduce()` to invert the key-value pairs of an object and apply the function provided (if any). - Omit the second argument, `fn`, to get the inverted keys without applying a function to them. diff --git a/snippets/is.md b/snippets/is.md index f66c86b66..d5f9adde5 100644 --- a/snippets/is.md +++ b/snippets/is.md @@ -1,5 +1,5 @@ --- -title: is +title: Check if value is of type tags: type,array,intermediate firstSeen: 2018-01-17T21:23:46+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isAbsoluteURL.md b/snippets/isAbsoluteURL.md index 522758bd6..889920f8c 100644 --- a/snippets/isAbsoluteURL.md +++ b/snippets/isAbsoluteURL.md @@ -1,5 +1,5 @@ --- -title: isAbsoluteURL +title: Check if absolute URL tags: string,browser,regexp,intermediate firstSeen: 2017-12-31T14:42:45+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isAfterDate.md b/snippets/isAfterDate.md index 1d06c4ab8..d364da101 100644 --- a/snippets/isAfterDate.md +++ b/snippets/isAfterDate.md @@ -1,5 +1,5 @@ --- -title: isAfterDate +title: Check if date is after another date tags: date,beginner firstSeen: 2018-09-29T13:58:38+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isAlpha.md b/snippets/isAlpha.md index 2e769c7ac..d22cbed05 100644 --- a/snippets/isAlpha.md +++ b/snippets/isAlpha.md @@ -1,5 +1,5 @@ --- -title: isAlpha +title: String is alpha tags: string,regexp,beginner firstSeen: 2020-12-31T14:01:42+02:00 lastUpdated: 2020-12-31T14:01:42+02:00 diff --git a/snippets/isAlphaNumeric.md b/snippets/isAlphaNumeric.md index 533b0a3ef..2abfb6a61 100644 --- a/snippets/isAlphaNumeric.md +++ b/snippets/isAlphaNumeric.md @@ -1,5 +1,5 @@ --- -title: isAlphaNumeric +title: String is alphanumeric tags: string,regexp,beginner firstSeen: 2020-09-06T07:59:16+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isAnagram.md b/snippets/isAnagram.md index afe6845c8..2c0dfba03 100644 --- a/snippets/isAnagram.md +++ b/snippets/isAnagram.md @@ -1,5 +1,5 @@ --- -title: isAnagram +title: String is anagram tags: string,regexp,intermediate firstSeen: 2018-02-19T15:47:47+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isArrayLike.md b/snippets/isArrayLike.md index dd9f489b4..1858ecfc1 100644 --- a/snippets/isArrayLike.md +++ b/snippets/isArrayLike.md @@ -1,5 +1,5 @@ --- -title: isArrayLike +title: Value is array-like tags: type,array,intermediate firstSeen: 2017-12-31T14:53:01+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isAsyncFunction.md b/snippets/isAsyncFunction.md index 3555cba77..1f67098ab 100644 --- a/snippets/isAsyncFunction.md +++ b/snippets/isAsyncFunction.md @@ -1,5 +1,5 @@ --- -title: isAsyncFunction +title: Value is async function tags: type,function,intermediate firstSeen: 2020-08-07T15:41:55+03:00 lastUpdated: 2020-10-20T11:21:07+03:00 diff --git a/snippets/isBeforeDate.md b/snippets/isBeforeDate.md index 358f0c753..c14037a83 100644 --- a/snippets/isBeforeDate.md +++ b/snippets/isBeforeDate.md @@ -1,5 +1,5 @@ --- -title: isBeforeDate +title: Check if date is before another date tags: date,beginner firstSeen: 2018-09-29T13:58:38+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isBetweenDates.md b/snippets/isBetweenDates.md index 601334264..0f098a303 100644 --- a/snippets/isBetweenDates.md +++ b/snippets/isBetweenDates.md @@ -1,5 +1,5 @@ --- -title: isBetweenDates +title: Check if date is between two dates tags: date,beginner firstSeen: 2020-10-07T20:31:52+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isBoolean.md b/snippets/isBoolean.md index ae361b395..2084d1cf6 100644 --- a/snippets/isBoolean.md +++ b/snippets/isBoolean.md @@ -1,5 +1,5 @@ --- -title: isBoolean +title: Value is boolean tags: type,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/isBrowser.md b/snippets/isBrowser.md index 39c09cc44..2c75d931d 100644 --- a/snippets/isBrowser.md +++ b/snippets/isBrowser.md @@ -1,5 +1,5 @@ --- -title: isBrowser +title: Environment is browser tags: browser,node,intermediate firstSeen: 2018-03-19T04:50:55+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isBrowserTabFocused.md b/snippets/isBrowserTabFocused.md index 05609a515..d2f15cd08 100644 --- a/snippets/isBrowserTabFocused.md +++ b/snippets/isBrowserTabFocused.md @@ -1,5 +1,5 @@ --- -title: isBrowserTabFocused +title: Check if browser tab is focused tags: browser,beginner firstSeen: 2018-04-15T19:18:44+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isContainedIn.md b/snippets/isContainedIn.md index a6b69fd1d..9d2b7507b 100644 --- a/snippets/isContainedIn.md +++ b/snippets/isContainedIn.md @@ -1,5 +1,5 @@ --- -title: isContainedIn +title: Array is contained in other array tags: array,intermediate firstSeen: 2020-01-05T21:40:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/isDateValid.md b/snippets/isDateValid.md index 48ba958e0..87c565eb0 100644 --- a/snippets/isDateValid.md +++ b/snippets/isDateValid.md @@ -1,5 +1,5 @@ --- -title: isDateValid +title: Check if date is valid tags: date,intermediate firstSeen: 2020-10-08T16:39:23+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isDeepFrozen.md b/snippets/isDeepFrozen.md index 30d9c616f..b36e861c7 100644 --- a/snippets/isDeepFrozen.md +++ b/snippets/isDeepFrozen.md @@ -1,5 +1,5 @@ --- -title: isDeepFrozen +title: Check if object is deep frozen tags: object,recursion,intermediate firstSeen: 2020-09-04T20:20:11+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isDisjoint.md b/snippets/isDisjoint.md index 609433fe0..f16685b1b 100644 --- a/snippets/isDisjoint.md +++ b/snippets/isDisjoint.md @@ -1,5 +1,5 @@ --- -title: isDisjoint +title: Disjointed iterables tags: array,intermediate firstSeen: 2020-10-11T11:53:01+03:00 lastUpdated: 2020-10-11T11:53:01+03:00 diff --git a/snippets/isDivisible.md b/snippets/isDivisible.md index 835509a37..34d85d9e5 100644 --- a/snippets/isDivisible.md +++ b/snippets/isDivisible.md @@ -1,5 +1,5 @@ --- -title: isDivisible +title: Number is divisible tags: math,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/isDuplexStream.md b/snippets/isDuplexStream.md index f177135dd..f843611ea 100644 --- a/snippets/isDuplexStream.md +++ b/snippets/isDuplexStream.md @@ -1,5 +1,5 @@ --- -title: isDuplexStream +title: Stream is duplex tags: node,type,intermediate firstSeen: 2018-10-03T22:16:10+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isEmpty.md b/snippets/isEmpty.md index 939df0eac..f58b06865 100644 --- a/snippets/isEmpty.md +++ b/snippets/isEmpty.md @@ -1,5 +1,5 @@ --- -title: isEmpty +title: Array is empty tags: type,array,object,string,beginner firstSeen: 2018-01-23T19:25:17+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isEven.md b/snippets/isEven.md index d6bc75fb5..6e85e123a 100644 --- a/snippets/isEven.md +++ b/snippets/isEven.md @@ -1,5 +1,5 @@ --- -title: isEven +title: Number is even tags: math,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isFunction.md b/snippets/isFunction.md index 58102a2b3..b0f0c7df6 100644 --- a/snippets/isFunction.md +++ b/snippets/isFunction.md @@ -1,5 +1,5 @@ --- -title: isFunction +title: Value is function tags: type,function,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/isGeneratorFunction.md b/snippets/isGeneratorFunction.md index a99c77d02..a468f7da5 100644 --- a/snippets/isGeneratorFunction.md +++ b/snippets/isGeneratorFunction.md @@ -1,5 +1,5 @@ --- -title: isGeneratorFunction +title: Value is generator function tags: type,function,intermediate firstSeen: 2020-08-07T15:40:38+03:00 lastUpdated: 2020-10-20T11:21:07+03:00 diff --git a/snippets/isISOString.md b/snippets/isISOString.md index 8383c5b1c..b2dd63d0d 100644 --- a/snippets/isISOString.md +++ b/snippets/isISOString.md @@ -1,5 +1,5 @@ --- -title: isISOString +title: String is ISO formatted date tags: date,intermediate firstSeen: 2020-11-29T12:16:43+02:00 lastUpdated: 2020-11-29T12:16:43+02:00 diff --git a/snippets/isLeapYear.md b/snippets/isLeapYear.md index 099b31244..1eb5a20e5 100644 --- a/snippets/isLeapYear.md +++ b/snippets/isLeapYear.md @@ -1,5 +1,5 @@ --- -title: isLeapYear +title: Check for leap year tags: date,beginner firstSeen: 2020-02-05T14:00:03+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isLocalStorageEnabled.md b/snippets/isLocalStorageEnabled.md index 2cc5d9c8e..d81dd859e 100644 --- a/snippets/isLocalStorageEnabled.md +++ b/snippets/isLocalStorageEnabled.md @@ -1,5 +1,5 @@ --- -title: isLocalStorageEnabled +title: Check if localStorage is enabled tags: browser,intermediate firstSeen: 2020-12-31T13:13:47+02:00 lastUpdated: 2020-12-31T13:13:47+02:00 diff --git a/snippets/isLowerCase.md b/snippets/isLowerCase.md index 2caad2988..79e19366a 100644 --- a/snippets/isLowerCase.md +++ b/snippets/isLowerCase.md @@ -1,5 +1,5 @@ --- -title: isLowerCase +title: String is lowercase tags: string,beginner firstSeen: 2018-01-06T11:16:05+02:00 lastUpdated: 2020-10-20T11:21:07+03:00 diff --git a/snippets/isNegativeZero.md b/snippets/isNegativeZero.md index 997ca5d08..d5297de8e 100644 --- a/snippets/isNegativeZero.md +++ b/snippets/isNegativeZero.md @@ -1,5 +1,5 @@ --- -title: isNegativeZero +title: Number is negative zero tags: math,intermediate firstSeen: 2018-11-12T15:45:36+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isNil.md b/snippets/isNil.md index c9c1d94f1..e74231476 100644 --- a/snippets/isNil.md +++ b/snippets/isNil.md @@ -1,5 +1,5 @@ --- -title: isNil +title: Value is nil tags: type,beginner firstSeen: 2018-01-16T16:50:21+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isNode.md b/snippets/isNode.md index a1122f73c..1a408a6a6 100644 --- a/snippets/isNode.md +++ b/snippets/isNode.md @@ -1,5 +1,5 @@ --- -title: isNode +title: Environment is Node.js tags: node,browser,intermediate firstSeen: 2020-10-12T20:01:21+03:00 lastUpdated: 2021-04-02T11:45:13+03:00 diff --git a/snippets/isNull.md b/snippets/isNull.md index fb7ec3a39..8bc46b1b1 100644 --- a/snippets/isNull.md +++ b/snippets/isNull.md @@ -1,5 +1,5 @@ --- -title: isNull +title: Value is null tags: type,beginner firstSeen: 2017-12-31T12:26:19+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isNumber.md b/snippets/isNumber.md index f346e2a59..13c00a645 100644 --- a/snippets/isNumber.md +++ b/snippets/isNumber.md @@ -1,5 +1,5 @@ --- -title: isNumber +title: Value is number tags: type,math,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/isObject.md b/snippets/isObject.md index 058048f02..d3fa86937 100644 --- a/snippets/isObject.md +++ b/snippets/isObject.md @@ -1,5 +1,5 @@ --- -title: isObject +title: Value is object tags: type,object,beginner firstSeen: 2018-01-11T12:24:06+02:00 lastUpdated: 2021-01-08T00:23:44+02:00 diff --git a/snippets/isObjectLike.md b/snippets/isObjectLike.md index 88f5ec68b..3cb736a97 100644 --- a/snippets/isObjectLike.md +++ b/snippets/isObjectLike.md @@ -1,5 +1,5 @@ --- -title: isObjectLike +title: Value is object-like tags: type,object,beginner firstSeen: 2018-01-23T19:30:03+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/isOdd.md b/snippets/isOdd.md index c975f566e..ce18a1ca6 100644 --- a/snippets/isOdd.md +++ b/snippets/isOdd.md @@ -1,5 +1,5 @@ --- -title: isOdd +title: Number is odd tags: math,beginner firstSeen: 2019-09-25T20:35:06+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isPlainObject.md b/snippets/isPlainObject.md index ed1e96af0..9d0493c9c 100644 --- a/snippets/isPlainObject.md +++ b/snippets/isPlainObject.md @@ -1,5 +1,5 @@ --- -title: isPlainObject +title: Value is plain object tags: type,object,intermediate firstSeen: 2018-01-19T13:59:12+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isPowerOfTen.md b/snippets/isPowerOfTen.md index 95b402e0d..baba026d3 100644 --- a/snippets/isPowerOfTen.md +++ b/snippets/isPowerOfTen.md @@ -1,5 +1,5 @@ --- -title: isPowerOfTen +title: Number is power of ten tags: math,beginner firstSeen: 2021-01-06T22:53:58+02:00 lastUpdated: 2021-01-06T22:53:58+02:00 diff --git a/snippets/isPowerOfTwo.md b/snippets/isPowerOfTwo.md index 9ece092ec..8e73a75e7 100644 --- a/snippets/isPowerOfTwo.md +++ b/snippets/isPowerOfTwo.md @@ -1,5 +1,5 @@ --- -title: isPowerOfTwo +title: Number is power of two tags: math,beginner firstSeen: 2019-12-31T13:17:12+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isPrime.md b/snippets/isPrime.md index 4e7f320b8..d0b171a50 100644 --- a/snippets/isPrime.md +++ b/snippets/isPrime.md @@ -1,5 +1,5 @@ --- -title: isPrime +title: Number is prime tags: math,algorithm,beginner firstSeen: 2017-12-19T22:35:56+02:00 lastUpdated: 2021-01-12T19:36:36+02:00 diff --git a/snippets/isPrimitive.md b/snippets/isPrimitive.md index 91deb62ba..28cc75469 100644 --- a/snippets/isPrimitive.md +++ b/snippets/isPrimitive.md @@ -1,5 +1,5 @@ --- -title: isPrimitive +title: Number is primitive tags: type,intermediate firstSeen: 2017-12-31T12:48:13+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/isPromiseLike.md b/snippets/isPromiseLike.md index c5d3830a6..ad99361e5 100644 --- a/snippets/isPromiseLike.md +++ b/snippets/isPromiseLike.md @@ -1,5 +1,5 @@ --- -title: isPromiseLike +title: Value is promise-like tags: type,function,promise,intermediate firstSeen: 2017-12-31T14:25:43+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isReadableStream.md b/snippets/isReadableStream.md index 9b93e1f76..ed4a1a413 100644 --- a/snippets/isReadableStream.md +++ b/snippets/isReadableStream.md @@ -1,5 +1,5 @@ --- -title: isReadableStream +title: Stream is readable tags: node,type,intermediate firstSeen: 2018-10-03T22:16:10+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isSameDate.md b/snippets/isSameDate.md index eefdf1ac7..bf5b5a6d6 100644 --- a/snippets/isSameDate.md +++ b/snippets/isSameDate.md @@ -1,5 +1,5 @@ --- -title: isSameDate +title: Date is same as another date tags: date,beginner firstSeen: 2018-09-29T13:58:38+03:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/isSameOrigin.md b/snippets/isSameOrigin.md index dec73adcd..e0e9b30d6 100644 --- a/snippets/isSameOrigin.md +++ b/snippets/isSameOrigin.md @@ -1,5 +1,5 @@ --- -title: isSameOrigin +title: Same-origin URLs tags: object,beginner firstSeen: 2021-04-22T08:27:41+03:00 lastUpdated: 2021-04-22T08:27:41+03:00 diff --git a/snippets/isSessionStorageEnabled.md b/snippets/isSessionStorageEnabled.md index fc9f52bfe..742d1a550 100644 --- a/snippets/isSessionStorageEnabled.md +++ b/snippets/isSessionStorageEnabled.md @@ -1,5 +1,5 @@ --- -title: isSessionStorageEnabled +title: Check if sessionStorage is enabled tags: browser,intermediate firstSeen: 2020-12-31T13:13:47+02:00 lastUpdated: 2020-12-31T13:13:47+02:00 diff --git a/snippets/isSorted.md b/snippets/isSorted.md index 1acc2adbd..c7e474aa0 100644 --- a/snippets/isSorted.md +++ b/snippets/isSorted.md @@ -1,5 +1,5 @@ --- -title: isSorted +title: Array is sorted tags: array,intermediate firstSeen: 2018-01-01T19:30:14+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isStream.md b/snippets/isStream.md index 38c9e5296..26e5d686c 100644 --- a/snippets/isStream.md +++ b/snippets/isStream.md @@ -1,5 +1,5 @@ --- -title: isStream +title: Value is stream tags: node,type,intermediate firstSeen: 2018-10-01T20:12:19+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isString.md b/snippets/isString.md index 649e262aa..8bfa4dbc5 100644 --- a/snippets/isString.md +++ b/snippets/isString.md @@ -1,5 +1,5 @@ --- -title: isString +title: Value is string tags: type,string,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isSymbol.md b/snippets/isSymbol.md index c119652ff..e3c1b6f84 100644 --- a/snippets/isSymbol.md +++ b/snippets/isSymbol.md @@ -1,5 +1,5 @@ --- -title: isSymbol +title: Value is symbol tags: type,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/isTravisCI.md b/snippets/isTravisCI.md index 0e227a33d..b9812c033 100644 --- a/snippets/isTravisCI.md +++ b/snippets/isTravisCI.md @@ -1,5 +1,5 @@ --- -title: isTravisCI +title: Environment is Travis CI tags: node,intermediate unlisted: true firstSeen: 2018-01-01T17:28:08+02:00 diff --git a/snippets/isUndefined.md b/snippets/isUndefined.md index 6992f55f5..925af7dce 100644 --- a/snippets/isUndefined.md +++ b/snippets/isUndefined.md @@ -1,5 +1,5 @@ --- -title: isUndefined +title: Value is undefined tags: type,beginner firstSeen: 2018-01-16T16:50:21+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isUpperCase.md b/snippets/isUpperCase.md index af7b6ee2a..d0f4de0c6 100644 --- a/snippets/isUpperCase.md +++ b/snippets/isUpperCase.md @@ -1,5 +1,5 @@ --- -title: isUpperCase +title: String is uppercase tags: string,beginner firstSeen: 2018-01-06T11:16:05+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/isValidJSON.md b/snippets/isValidJSON.md index 2bb3d1882..c6cc33d6a 100644 --- a/snippets/isValidJSON.md +++ b/snippets/isValidJSON.md @@ -1,5 +1,5 @@ --- -title: isValidJSON +title: String is valid JSON tags: type,intermediate firstSeen: 2017-12-31T14:53:01+02:00 lastUpdated: 2020-10-18T13:49:49+03:00 diff --git a/snippets/isWeekday.md b/snippets/isWeekday.md index 4f051ab91..dbb634540 100644 --- a/snippets/isWeekday.md +++ b/snippets/isWeekday.md @@ -1,5 +1,5 @@ --- -title: isWeekday +title: Date is weekday tags: date,beginner firstSeen: 2019-07-19T12:12:09+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isWeekend.md b/snippets/isWeekend.md index 5795d7ddd..190a87e48 100644 --- a/snippets/isWeekend.md +++ b/snippets/isWeekend.md @@ -1,5 +1,5 @@ --- -title: isWeekend +title: Date is weekend tags: date,beginner firstSeen: 2019-07-19T17:07:02+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/isWritableStream.md b/snippets/isWritableStream.md index 21b89c24a..300b4dce5 100644 --- a/snippets/isWritableStream.md +++ b/snippets/isWritableStream.md @@ -1,5 +1,5 @@ --- -title: isWritableStream +title: Stream is writable tags: node,type,intermediate firstSeen: 2018-10-03T22:16:10+03:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/join.md b/snippets/join.md index e4d7f45db..ef15c2e0f 100644 --- a/snippets/join.md +++ b/snippets/join.md @@ -1,5 +1,5 @@ --- -title: join +title: Join array into string tags: array,intermediate firstSeen: 2018-01-01T12:18:40+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/juxt.md b/snippets/juxt.md index c9209e342..55b92ae67 100644 --- a/snippets/juxt.md +++ b/snippets/juxt.md @@ -1,5 +1,5 @@ --- -title: juxt +title: Juxtapose functions tags: function,advanced firstSeen: 2020-05-20T19:58:39+03:00 lastUpdated: 2020-10-20T23:29:39+03:00 diff --git a/snippets/kMeans.md b/snippets/kMeans.md index 57aa1aa65..a3279c75d 100644 --- a/snippets/kMeans.md +++ b/snippets/kMeans.md @@ -1,5 +1,5 @@ --- -title: kMeans +title: K-means clustering tags: algorithm,array,advanced firstSeen: 2020-12-28T15:38:40+02:00 lastUpdated: 2020-12-29T16:32:46+02:00 diff --git a/snippets/kNearestNeighbors.md b/snippets/kNearestNeighbors.md index ec90b1cde..b97ca476f 100644 --- a/snippets/kNearestNeighbors.md +++ b/snippets/kNearestNeighbors.md @@ -1,5 +1,5 @@ --- -title: kNearestNeighbors +title: K-nearest neighbors tags: algorithm,array,advanced firstSeen: 2020-12-28T16:31:43+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/kmToMiles.md b/snippets/kmToMiles.md index f7e44d779..674f9ad68 100644 --- a/snippets/kmToMiles.md +++ b/snippets/kmToMiles.md @@ -1,5 +1,5 @@ --- -title: kmToMiles +title: Km to miles tags: math,beginner unlisted: true firstSeen: 2020-10-04T00:50:13+03:00 diff --git a/snippets/last.md b/snippets/last.md index 266a43a5e..a41f4acfd 100644 --- a/snippets/last.md +++ b/snippets/last.md @@ -1,5 +1,5 @@ --- -title: last +title: Last array element tags: array,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-20T23:02:01+03:00 diff --git a/snippets/lastDateOfMonth.md b/snippets/lastDateOfMonth.md index 41875fc8d..7ea96c8af 100644 --- a/snippets/lastDateOfMonth.md +++ b/snippets/lastDateOfMonth.md @@ -1,5 +1,5 @@ --- -title: lastDateOfMonth +title: Last date of month tags: date,intermediate firstSeen: 2020-10-09T20:36:54+03:00 lastUpdated: 2020-10-09T22:01:42+03:00 diff --git a/snippets/lcm.md b/snippets/lcm.md index ddcabc2db..8a4978902 100644 --- a/snippets/lcm.md +++ b/snippets/lcm.md @@ -1,5 +1,5 @@ --- -title: lcm +title: Least common multiple tags: math,algorithm,recursion,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/levenshteinDistance.md b/snippets/levenshteinDistance.md index ab8441df7..bdb345444 100644 --- a/snippets/levenshteinDistance.md +++ b/snippets/levenshteinDistance.md @@ -1,5 +1,5 @@ --- -title: levenshteinDistance +title: Levenshtein distance tags: string,algorithm,intermediate firstSeen: 2020-12-27T19:49:12+02:00 lastUpdated: 2020-12-29T16:27:50+02:00 diff --git a/snippets/linearSearch.md b/snippets/linearSearch.md index b4cc51e4a..200921daa 100644 --- a/snippets/linearSearch.md +++ b/snippets/linearSearch.md @@ -1,5 +1,5 @@ --- -title: linearSearch +title: Linear search tags: algorithm,array,beginner firstSeen: 2020-12-28T12:07:53+02:00 lastUpdated: 2020-12-28T12:07:53+02:00 diff --git a/snippets/listenOnce.md b/snippets/listenOnce.md index 9c7498ec3..25342c06e 100644 --- a/snippets/listenOnce.md +++ b/snippets/listenOnce.md @@ -1,5 +1,5 @@ --- -title: listenOnce +title: Listen for an event only once tags: browser,event,beginner firstSeen: 2020-06-01T16:58:52+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/logBase.md b/snippets/logBase.md index bca3e06d3..26adb1990 100644 --- a/snippets/logBase.md +++ b/snippets/logBase.md @@ -1,5 +1,5 @@ --- -title: logBase +title: Logarithm in specific base tags: math,beginner firstSeen: 2020-10-07T19:14:30+03:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/longestItem.md b/snippets/longestItem.md index 1baf9abcb..bfe2ac269 100644 --- a/snippets/longestItem.md +++ b/snippets/longestItem.md @@ -1,5 +1,5 @@ --- -title: longestItem +title: Longest item in array tags: array,intermediate firstSeen: 2018-01-08T21:33:47+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/lowercaseKeys.md b/snippets/lowercaseKeys.md index fbe68e400..a940db058 100644 --- a/snippets/lowercaseKeys.md +++ b/snippets/lowercaseKeys.md @@ -1,5 +1,5 @@ --- -title: lowercaseKeys +title: Lowercase object keys tags: object,intermediate firstSeen: 2017-12-29T13:28:18+02:00 lastUpdated: 2020-10-20T11:21:07+03:00 diff --git a/snippets/luhnCheck.md b/snippets/luhnCheck.md index dd2e831fb..0de4c6942 100644 --- a/snippets/luhnCheck.md +++ b/snippets/luhnCheck.md @@ -1,5 +1,5 @@ --- -title: luhnCheck +title: Luhn check tags: math,algorithm,advanced firstSeen: 2018-01-03T11:02:35+02:00 lastUpdated: 2022-01-30T13:37:39+02:00 diff --git a/snippets/mapConsecutive.md b/snippets/mapConsecutive.md index d3006c03e..25b22603f 100644 --- a/snippets/mapConsecutive.md +++ b/snippets/mapConsecutive.md @@ -1,5 +1,5 @@ --- -title: mapConsecutive +title: Map consecutive elements tags: array,intermediate firstSeen: 2021-08-08T05:00:00-04:00 --- diff --git a/snippets/mapKeys.md b/snippets/mapKeys.md index 2f37acf79..3b5ea0901 100644 --- a/snippets/mapKeys.md +++ b/snippets/mapKeys.md @@ -1,5 +1,5 @@ --- -title: mapKeys +title: Map object keys tags: object,intermediate firstSeen: 2018-01-11T20:33:14+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/mapNumRange.md b/snippets/mapNumRange.md index 5c6af9c98..3ce1de564 100644 --- a/snippets/mapNumRange.md +++ b/snippets/mapNumRange.md @@ -1,5 +1,5 @@ --- -title: mapNumRange +title: Map number to range tags: math,beginner firstSeen: 2019-02-23T12:38:16+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/mapObject.md b/snippets/mapObject.md index 435eb5a27..bdeeef346 100644 --- a/snippets/mapObject.md +++ b/snippets/mapObject.md @@ -1,5 +1,5 @@ --- -title: mapObject +title: Map array to object tags: array,object,intermediate firstSeen: 2017-12-18T12:11:58+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/mapString.md b/snippets/mapString.md index 8c93452fb..6812ba63b 100644 --- a/snippets/mapString.md +++ b/snippets/mapString.md @@ -1,5 +1,5 @@ --- -title: mapString +title: Map string tags: string,intermediate firstSeen: 2018-07-14T10:59:56+03:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/mapValues.md b/snippets/mapValues.md index 19ba34376..38ec3cf0f 100644 --- a/snippets/mapValues.md +++ b/snippets/mapValues.md @@ -1,5 +1,5 @@ --- -title: mapValues +title: Map object values tags: object,intermediate firstSeen: 2018-01-11T20:33:14+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/mask.md b/snippets/mask.md index 22af246e1..47f0f0f09 100644 --- a/snippets/mask.md +++ b/snippets/mask.md @@ -1,5 +1,5 @@ --- -title: mask +title: Mask a value tags: string,intermediate firstSeen: 2018-01-01T13:02:59+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/matches.md b/snippets/matches.md index cc2a2e3c8..4ba7e8fe0 100644 --- a/snippets/matches.md +++ b/snippets/matches.md @@ -1,5 +1,5 @@ --- -title: matches +title: Match object properties tags: object,intermediate firstSeen: 2018-01-23T20:17:32+02:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/matchesWith.md b/snippets/matchesWith.md index b82be9975..3a7f9c381 100644 --- a/snippets/matchesWith.md +++ b/snippets/matchesWith.md @@ -1,5 +1,5 @@ --- -title: matchesWith +title: Matches object properties based on function tags: object,intermediate firstSeen: 2018-01-23T20:17:32+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/maxBy.md b/snippets/maxBy.md index 75c848868..080628531 100644 --- a/snippets/maxBy.md +++ b/snippets/maxBy.md @@ -1,5 +1,5 @@ --- -title: maxBy +title: Max array value based on function tags: math,array,beginner firstSeen: 2018-01-11T12:25:54+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/maxDate.md b/snippets/maxDate.md index ff659194c..81b22e095 100644 --- a/snippets/maxDate.md +++ b/snippets/maxDate.md @@ -1,5 +1,5 @@ --- -title: maxDate +title: Max date tags: date,intermediate firstSeen: 2018-09-29T13:38:20+03:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/maxN.md b/snippets/maxN.md index e2356284c..c5b1f5fd5 100644 --- a/snippets/maxN.md +++ b/snippets/maxN.md @@ -1,5 +1,5 @@ --- -title: maxN +title: N max elements tags: array,math,intermediate firstSeen: 2018-01-03T05:18:29+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/median.md b/snippets/median.md index 885a594e3..4caed8602 100644 --- a/snippets/median.md +++ b/snippets/median.md @@ -1,5 +1,5 @@ --- -title: median +title: Median tags: math,array,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:47+03:00 diff --git a/snippets/memoize.md b/snippets/memoize.md index 594e6b1f4..f89d02fef 100644 --- a/snippets/memoize.md +++ b/snippets/memoize.md @@ -1,5 +1,5 @@ --- -title: memoize +title: Memoize function tags: function,advanced firstSeen: 2017-12-31T13:55:55+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/merge.md b/snippets/merge.md index 1c2092959..bb999cb7a 100644 --- a/snippets/merge.md +++ b/snippets/merge.md @@ -1,5 +1,5 @@ --- -title: merge +title: Merge objects tags: object,array,intermediate firstSeen: 2018-01-12T14:44:20+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/mergeSort.md b/snippets/mergeSort.md index b41dde893..2eafee73f 100644 --- a/snippets/mergeSort.md +++ b/snippets/mergeSort.md @@ -1,5 +1,5 @@ --- -title: mergeSort +title: Merge sort tags: algorithm,array,recursion,advanced firstSeen: 2020-12-27T22:44:32+02:00 lastUpdated: 2020-12-27T22:44:32+02:00 diff --git a/snippets/mergeSortedArrays.md b/snippets/mergeSortedArrays.md index 592742be3..23b5ed591 100644 --- a/snippets/mergeSortedArrays.md +++ b/snippets/mergeSortedArrays.md @@ -1,5 +1,5 @@ --- -title: mergeSortedArrays +title: Merge sorted arrays tags: array,intermediate firstSeen: 2020-12-27T22:55:37+02:00 lastUpdated: 2020-12-27T22:55:37+02:00 diff --git a/snippets/midpoint.md b/snippets/midpoint.md index 5755d28c7..5fa8436ea 100644 --- a/snippets/midpoint.md +++ b/snippets/midpoint.md @@ -1,5 +1,5 @@ --- -title: midpoint +title: Midpoint tags: math,beginner firstSeen: 2018-11-15T17:49:04+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/milesToKm.md b/snippets/milesToKm.md index e103b0838..1d1410bee 100644 --- a/snippets/milesToKm.md +++ b/snippets/milesToKm.md @@ -1,5 +1,5 @@ --- -title: milesToKm +title: Miles to km tags: math,beginner unlisted: true firstSeen: 2020-10-04T00:51:51+03:00 diff --git a/snippets/minBy.md b/snippets/minBy.md index 8678afe88..0d3474be2 100644 --- a/snippets/minBy.md +++ b/snippets/minBy.md @@ -1,5 +1,5 @@ --- -title: minBy +title: Min array value based on function tags: math,array,beginner firstSeen: 2018-01-11T12:25:54+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/minDate.md b/snippets/minDate.md index e30852bc2..e971d3b06 100644 --- a/snippets/minDate.md +++ b/snippets/minDate.md @@ -1,5 +1,5 @@ --- -title: minDate +title: Min date tags: date,intermediate firstSeen: 2018-09-29T13:38:20+03:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/minN.md b/snippets/minN.md index d29c27a50..c8fb3bc6f 100644 --- a/snippets/minN.md +++ b/snippets/minN.md @@ -1,5 +1,5 @@ --- -title: minN +title: N min elements tags: array,math,intermediate firstSeen: 2018-01-03T05:18:29+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/mostFrequent.md b/snippets/mostFrequent.md index 2c5c939de..e23bda88d 100644 --- a/snippets/mostFrequent.md +++ b/snippets/mostFrequent.md @@ -1,5 +1,5 @@ --- -title: mostFrequent +title: Most frequent element in array tags: array,intermediate firstSeen: 2020-01-03T15:32:46+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/mostPerformant.md b/snippets/mostPerformant.md index 0bf633c60..fe58bb0f8 100644 --- a/snippets/mostPerformant.md +++ b/snippets/mostPerformant.md @@ -1,5 +1,5 @@ --- -title: mostPerformant +title: Most performant function tags: function,advanced firstSeen: 2018-02-14T13:38:45+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/negate.md b/snippets/negate.md index 8b7382cd0..dc41bdc58 100644 --- a/snippets/negate.md +++ b/snippets/negate.md @@ -1,5 +1,5 @@ --- -title: negate +title: Negate predicate tags: function,beginner firstSeen: 2017-12-24T08:28:52+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/nest.md b/snippets/nest.md index 47e21db2c..a5c4742e5 100644 --- a/snippets/nest.md +++ b/snippets/nest.md @@ -1,5 +1,5 @@ --- -title: nest +title: Nest objects tags: object,recursion,intermediate firstSeen: 2018-02-24T13:49:56+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/nodeListToArray.md b/snippets/nodeListToArray.md index 7c1f6f918..8d43c3b63 100644 --- a/snippets/nodeListToArray.md +++ b/snippets/nodeListToArray.md @@ -1,5 +1,5 @@ --- -title: nodeListToArray +title: NodeList to array tags: browser,array,beginner firstSeen: 2018-05-06T18:11:21+03:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/none.md b/snippets/none.md index e71fa66ca..a4e15d198 100644 --- a/snippets/none.md +++ b/snippets/none.md @@ -1,5 +1,5 @@ --- -title: none +title: Test if all array elements are falsy tags: array,beginner firstSeen: 2018-02-14T11:46:15+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/nor.md b/snippets/nor.md index b1e524de9..2f33753d8 100644 --- a/snippets/nor.md +++ b/snippets/nor.md @@ -1,5 +1,5 @@ --- -title: nor +title: Logical nor tags: math,logic,beginner unlisted: true firstSeen: 2021-03-29T21:20:41+03:00 diff --git a/snippets/normalizeLineEndings.md b/snippets/normalizeLineEndings.md index b90a4f811..4ff982c20 100644 --- a/snippets/normalizeLineEndings.md +++ b/snippets/normalizeLineEndings.md @@ -1,5 +1,5 @@ --- -title: normalizeLineEndings +title: Normalize line endings tags: string,regexp,intermediate firstSeen: 2020-05-04T12:33:13+03:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/not.md b/snippets/not.md index 2f5afb298..2d2211a78 100644 --- a/snippets/not.md +++ b/snippets/not.md @@ -1,5 +1,5 @@ --- -title: not +title: Logical not tags: math,logic,beginner unlisted: true firstSeen: 2020-05-13T11:28:26+03:00 diff --git a/snippets/nthArg.md b/snippets/nthArg.md index eb578dff0..8a3bfb13f 100644 --- a/snippets/nthArg.md +++ b/snippets/nthArg.md @@ -1,5 +1,5 @@ --- -title: nthArg +title: Nth argument tags: function,beginner firstSeen: 2018-01-23T21:27:37+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/nthElement.md b/snippets/nthElement.md index 536e999df..416d8e8c0 100644 --- a/snippets/nthElement.md +++ b/snippets/nthElement.md @@ -1,5 +1,5 @@ --- -title: nthElement +title: Nth element tags: array,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/nthRoot.md b/snippets/nthRoot.md index 0411c9256..c2bf70275 100644 --- a/snippets/nthRoot.md +++ b/snippets/nthRoot.md @@ -1,5 +1,5 @@ --- -title: nthRoot +title: Nth root of number tags: math,beginner firstSeen: 2021-01-06T22:47:48+02:00 lastUpdated: 2021-01-06T22:47:48+02:00 diff --git a/snippets/objectFromPairs.md b/snippets/objectFromPairs.md index 4f470480f..1c635d347 100644 --- a/snippets/objectFromPairs.md +++ b/snippets/objectFromPairs.md @@ -1,5 +1,5 @@ --- -title: objectFromPairs +title: Object from pairs tags: object,array,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 @@ -8,6 +8,7 @@ lastUpdated: 2020-10-21T21:54:53+03:00 Creates an object from the given key-value pairs. - Use `Array.prototype.reduce()` to create and combine key-value pairs. +- [`Object.fromEntries()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries) provides similar functionality. ```js const objectFromPairs = arr => diff --git a/snippets/objectToEntries.md b/snippets/objectToEntries.md index 44bbb3df1..92991d74d 100644 --- a/snippets/objectToEntries.md +++ b/snippets/objectToEntries.md @@ -1,5 +1,5 @@ --- -title: objectToEntries +title: Object to entries tags: object,array,beginner firstSeen: 2020-04-16T11:10:13+03:00 lastUpdated: 2020-09-15T16:28:04+03:00 @@ -8,6 +8,7 @@ lastUpdated: 2020-09-15T16:28:04+03:00 Creates an array of key-value pair arrays from an object. - Use `Object.keys()` and `Array.prototype.map()` to iterate over the object's keys and produce an array with key-value pairs. +- [`Object.entries()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) provides similar functionality. ```js const objectToEntries = obj => Object.keys(obj).map(k => [k, obj[k]]); diff --git a/snippets/objectToPairs.md b/snippets/objectToPairs.md index 93bfca48e..0f4935f1e 100644 --- a/snippets/objectToPairs.md +++ b/snippets/objectToPairs.md @@ -1,5 +1,5 @@ --- -title: objectToPairs +title: Object to pairs tags: object,array,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/objectToQueryString.md b/snippets/objectToQueryString.md index c645487d5..c27c54d58 100644 --- a/snippets/objectToQueryString.md +++ b/snippets/objectToQueryString.md @@ -1,5 +1,5 @@ --- -title: objectToQueryString +title: Object to query string tags: object,advanced firstSeen: 2019-10-11T23:16:05+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/observeMutations.md b/snippets/observeMutations.md index 83477623b..6f905f64d 100644 --- a/snippets/observeMutations.md +++ b/snippets/observeMutations.md @@ -1,5 +1,5 @@ --- -title: observeMutations +title: Observe element mutations tags: browser,event,advanced firstSeen: 2018-01-13T14:58:52+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/off.md b/snippets/off.md index edeb1fa37..0ee73cf09 100644 --- a/snippets/off.md +++ b/snippets/off.md @@ -1,5 +1,5 @@ --- -title: off +title: Remove event listener from element tags: browser,event,intermediate firstSeen: 2018-01-05T14:33:48+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/offset.md b/snippets/offset.md index e4592689d..043e7c3ba 100644 --- a/snippets/offset.md +++ b/snippets/offset.md @@ -1,5 +1,5 @@ --- -title: offset +title: Offset array elements tags: array,beginner firstSeen: 2018-04-10T19:07:50+03:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/omit.md b/snippets/omit.md index 95cbe1abc..f4b7e560b 100644 --- a/snippets/omit.md +++ b/snippets/omit.md @@ -1,5 +1,5 @@ --- -title: omit +title: Omit object properties tags: object,intermediate firstSeen: 2018-01-19T13:14:46+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/omitBy.md b/snippets/omitBy.md index 6fb23cdf1..fa014f932 100644 --- a/snippets/omitBy.md +++ b/snippets/omitBy.md @@ -1,5 +1,5 @@ --- -title: omitBy +title: Omit object properties based on function tags: object,intermediate firstSeen: 2018-01-19T13:23:45+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/on.md b/snippets/on.md index 5ec7afe94..14b9c8e3f 100644 --- a/snippets/on.md +++ b/snippets/on.md @@ -1,5 +1,5 @@ --- -title: on +title: Add event listener to element tags: browser,event,intermediate firstSeen: 2018-01-05T14:33:48+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/onClickOutside.md b/snippets/onClickOutside.md index b7b824e91..41f80d5b6 100644 --- a/snippets/onClickOutside.md +++ b/snippets/onClickOutside.md @@ -1,5 +1,5 @@ --- -title: onClickOutside +title: Handle click outside tags: browser,event,intermediate firstSeen: 2021-01-06T13:57:56+02:00 lastUpdated: 2021-01-06T13:57:56+02:00 diff --git a/snippets/onScrollStop.md b/snippets/onScrollStop.md index 697316839..4b5d28e97 100644 --- a/snippets/onScrollStop.md +++ b/snippets/onScrollStop.md @@ -1,5 +1,5 @@ --- -title: onScrollStop +title: Handle scroll stop tags: browser,event,intermediate firstSeen: 2021-01-07T00:31:14+02:00 lastUpdated: 2021-01-07T00:31:14+02:00 diff --git a/snippets/onUserInputChange.md b/snippets/onUserInputChange.md index ebe9e5be4..922c0b444 100644 --- a/snippets/onUserInputChange.md +++ b/snippets/onUserInputChange.md @@ -1,5 +1,5 @@ --- -title: onUserInputChange +title: Handle user input change tags: browser,event,advanced firstSeen: 2017-12-29T17:41:53+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/once.md b/snippets/once.md index 517e45b58..71aa2458e 100644 --- a/snippets/once.md +++ b/snippets/once.md @@ -1,5 +1,5 @@ --- -title: once +title: Call function once tags: function,intermediate firstSeen: 2018-01-02T00:40:46+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/or.md b/snippets/or.md index ccaeb8c34..953b6d170 100644 --- a/snippets/or.md +++ b/snippets/or.md @@ -1,5 +1,5 @@ --- -title: or +title: Logical or tags: math,logic,beginner unlisted: true firstSeen: 2020-05-13T11:35:41+03:00 diff --git a/snippets/orderBy.md b/snippets/orderBy.md index b076484df..aa15d414b 100644 --- a/snippets/orderBy.md +++ b/snippets/orderBy.md @@ -1,5 +1,5 @@ --- -title: orderBy +title: Order array of objects tags: object,array,advanced firstSeen: 2017-12-20T11:33:20+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/orderWith.md b/snippets/orderWith.md index d8788188c..1640a69ef 100644 --- a/snippets/orderWith.md +++ b/snippets/orderWith.md @@ -1,5 +1,5 @@ --- -title: orderWith +title: Order array of objects based on property order tags: array,object,intermediate firstSeen: 2020-10-04T12:11:10+03:00 lastUpdated: 2020-10-21T21:54:53+03:00 @@ -34,7 +34,7 @@ const users = [ { name: 'nicky', language: 'Python' }, ]; orderWith(users, 'language', ['Javascript', 'TypeScript', 'Java']); -/* +/* [ { name: 'fred', language: 'Javascript' }, { name: 'frannie', language: 'Javascript' }, diff --git a/snippets/over.md b/snippets/over.md index 8f64d89b4..52b171a28 100644 --- a/snippets/over.md +++ b/snippets/over.md @@ -1,5 +1,5 @@ --- -title: over +title: Invoke functions on arguments tags: function,intermediate firstSeen: 2018-01-23T21:02:17+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/overArgs.md b/snippets/overArgs.md index 5d402dbb9..bfb893bfa 100644 --- a/snippets/overArgs.md +++ b/snippets/overArgs.md @@ -1,5 +1,5 @@ --- -title: overArgs +title: Transform function arguments tags: function,intermediate firstSeen: 2018-01-28T14:54:16+02:00 lastUpdated: 2020-10-21T21:54:53+03:00 diff --git a/snippets/pad.md b/snippets/pad.md index 8d8cf1563..e8c727589 100644 --- a/snippets/pad.md +++ b/snippets/pad.md @@ -1,5 +1,5 @@ --- -title: pad +title: Pad string tags: string,beginner firstSeen: 2018-02-24T11:51:27+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/padNumber.md b/snippets/padNumber.md index f3abf59e3..f99e46047 100644 --- a/snippets/padNumber.md +++ b/snippets/padNumber.md @@ -1,5 +1,5 @@ --- -title: padNumber +title: Pad number tags: string,math,beginner firstSeen: 2020-10-03T23:31:08+03:00 lastUpdated: 2020-10-03T23:31:08+03:00 diff --git a/snippets/palindrome.md b/snippets/palindrome.md index b1a6aefbf..0868611f5 100644 --- a/snippets/palindrome.md +++ b/snippets/palindrome.md @@ -1,5 +1,5 @@ --- -title: palindrome +title: Palindrome tags: string,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/parseCookie.md b/snippets/parseCookie.md index 77c17fcc5..2e67fe92e 100644 --- a/snippets/parseCookie.md +++ b/snippets/parseCookie.md @@ -1,5 +1,5 @@ --- -title: parseCookie +title: Parse cookie tags: browser,string,intermediate firstSeen: 2018-01-13T14:19:21+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/partial.md b/snippets/partial.md index a75945e4e..9eff36b49 100644 --- a/snippets/partial.md +++ b/snippets/partial.md @@ -1,5 +1,5 @@ --- -title: partial +title: Prepend function arguments tags: function,intermediate firstSeen: 2018-01-24T14:40:16+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/partialRight.md b/snippets/partialRight.md index 7608d6115..007977281 100644 --- a/snippets/partialRight.md +++ b/snippets/partialRight.md @@ -1,5 +1,5 @@ --- -title: partialRight +title: Append function arguments tags: function,intermediate firstSeen: 2018-01-24T14:40:16+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/partition.md b/snippets/partition.md index 00a499eec..5807518a2 100644 --- a/snippets/partition.md +++ b/snippets/partition.md @@ -1,5 +1,5 @@ --- -title: partition +title: Partition array in two tags: array,object,intermediate firstSeen: 2018-01-08T16:58:23+02:00 lastUpdated: 2020-11-03T21:46:13+02:00 diff --git a/snippets/partitionBy.md b/snippets/partitionBy.md index 294147dd2..73e392bf0 100644 --- a/snippets/partitionBy.md +++ b/snippets/partitionBy.md @@ -1,5 +1,5 @@ --- -title: partitionBy +title: Partition array tags: array,object,advanced firstSeen: 2020-05-20T17:48:13+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/percentile.md b/snippets/percentile.md index da261b821..e05bdea6c 100644 --- a/snippets/percentile.md +++ b/snippets/percentile.md @@ -1,5 +1,5 @@ --- -title: percentile +title: Percentile of matches tags: math,intermediate firstSeen: 2017-12-13T12:50:16+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/permutations.md b/snippets/permutations.md index 30e55e022..6f3529a91 100644 --- a/snippets/permutations.md +++ b/snippets/permutations.md @@ -1,5 +1,5 @@ --- -title: permutations +title: Array permutations tags: array,algorithm,recursion,advanced firstSeen: 2018-02-19T15:47:47+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/pick.md b/snippets/pick.md index 18b8f18ae..7012d4362 100644 --- a/snippets/pick.md +++ b/snippets/pick.md @@ -1,5 +1,5 @@ --- -title: pick +title: Pick object keys tags: object,intermediate firstSeen: 2017-12-13T23:51:34+02:00 lastUpdated: 2020-10-18T14:58:09+03:00 diff --git a/snippets/pickBy.md b/snippets/pickBy.md index 8ad6ea096..883213f73 100644 --- a/snippets/pickBy.md +++ b/snippets/pickBy.md @@ -1,5 +1,5 @@ --- -title: pickBy +title: Pick matching object keys tags: object,intermediate firstSeen: 2018-01-19T13:23:45+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/pipeAsyncFunctions.md b/snippets/pipeAsyncFunctions.md index 820ec78d8..7123c6b32 100644 --- a/snippets/pipeAsyncFunctions.md +++ b/snippets/pipeAsyncFunctions.md @@ -1,5 +1,5 @@ --- -title: pipeAsyncFunctions +title: Pipe async functions tags: function,promise,intermediate firstSeen: 2018-01-27T18:17:44+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/pipeFunctions.md b/snippets/pipeFunctions.md index 1ec652723..574665ead 100644 --- a/snippets/pipeFunctions.md +++ b/snippets/pipeFunctions.md @@ -1,5 +1,5 @@ --- -title: pipeFunctions +title: Pipe functions tags: function,intermediate firstSeen: 2017-12-26T19:02:27+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/pluck.md b/snippets/pluck.md index 91d054f7c..eada1cf03 100644 --- a/snippets/pluck.md +++ b/snippets/pluck.md @@ -1,5 +1,5 @@ --- -title: pluck +title: Pluck values from array of objects tags: array,object,beginner firstSeen: 2020-10-18T01:19:37+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/pluralize.md b/snippets/pluralize.md index 59f1f7b59..04fa85f31 100644 --- a/snippets/pluralize.md +++ b/snippets/pluralize.md @@ -1,5 +1,5 @@ --- -title: pluralize +title: Pluralize string tags: string,advanced firstSeen: 2018-01-03T13:17:19+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/powerset.md b/snippets/powerset.md index 108d3b0d4..0d7051875 100644 --- a/snippets/powerset.md +++ b/snippets/powerset.md @@ -1,5 +1,5 @@ --- -title: powerset +title: Powerset tags: math,algorithm,beginner firstSeen: 2017-12-07T14:41:33+02:00 lastUpdated: 2021-09-27T15:27:07+02:00 diff --git a/snippets/prefersDarkColorScheme.md b/snippets/prefersDarkColorScheme.md index a5c0729e8..c23ebea41 100644 --- a/snippets/prefersDarkColorScheme.md +++ b/snippets/prefersDarkColorScheme.md @@ -1,5 +1,5 @@ --- -title: prefersDarkColorScheme +title: User prefers dark color scheme tags: browser,intermediate firstSeen: 2020-05-04T12:50:35+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/prefersLightColorScheme.md b/snippets/prefersLightColorScheme.md index fb50cce8f..54f2412a0 100644 --- a/snippets/prefersLightColorScheme.md +++ b/snippets/prefersLightColorScheme.md @@ -1,5 +1,5 @@ --- -title: prefersLightColorScheme +title: User prefers light color scheme tags: browser,intermediate firstSeen: 2020-05-04T12:50:35+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/prefix.md b/snippets/prefix.md index b9d3de2a5..ce64dadb1 100644 --- a/snippets/prefix.md +++ b/snippets/prefix.md @@ -1,5 +1,5 @@ --- -title: prefix +title: Prefix CSS property tags: browser,intermediate firstSeen: 2018-03-08T15:22:54+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/prettyBytes.md b/snippets/prettyBytes.md index e843e262d..1343639e9 100644 --- a/snippets/prettyBytes.md +++ b/snippets/prettyBytes.md @@ -1,5 +1,5 @@ --- -title: prettyBytes +title: Pretty-print number of bytes tags: string,math,advanced firstSeen: 2018-01-01T18:20:09+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/primeFactors.md b/snippets/primeFactors.md index 1112be461..d617b0330 100644 --- a/snippets/primeFactors.md +++ b/snippets/primeFactors.md @@ -1,5 +1,5 @@ --- -title: primeFactors +title: Prime factors of number tags: math,algorithm,beginner firstSeen: 2020-12-28T13:11:01+02:00 lastUpdated: 2020-12-28T13:11:01+02:00 diff --git a/snippets/primes.md b/snippets/primes.md index a050d7a67..7ddc1c5c5 100644 --- a/snippets/primes.md +++ b/snippets/primes.md @@ -1,5 +1,5 @@ --- -title: primes +title: Primes up to given number tags: math,algorithm,intermediate firstSeen: 2017-12-21T12:20:22+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/prod.md b/snippets/prod.md index 846c2de37..20b3b500f 100644 --- a/snippets/prod.md +++ b/snippets/prod.md @@ -1,5 +1,5 @@ --- -title: prod +title: Product of numeric values tags: math,array,intermediate firstSeen: 2020-10-15T21:56:51+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/promisify.md b/snippets/promisify.md index d6fefa731..8854c7c8b 100644 --- a/snippets/promisify.md +++ b/snippets/promisify.md @@ -1,5 +1,5 @@ --- -title: promisify +title: Promisify function tags: function,promise,intermediate firstSeen: 2017-12-13T12:27:43+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/pull.md b/snippets/pull.md index 3f5268aae..cd3e10326 100644 --- a/snippets/pull.md +++ b/snippets/pull.md @@ -1,5 +1,5 @@ --- -title: pull +title: Pull values from array tags: array,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/pullAtIndex.md b/snippets/pullAtIndex.md index 3df503aa7..1c1c2de29 100644 --- a/snippets/pullAtIndex.md +++ b/snippets/pullAtIndex.md @@ -1,5 +1,5 @@ --- -title: pullAtIndex +title: Pull values from array at index tags: array,advanced firstSeen: 2017-12-19T00:42:47+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/pullAtValue.md b/snippets/pullAtValue.md index 8cabba220..f179c1db0 100644 --- a/snippets/pullAtValue.md +++ b/snippets/pullAtValue.md @@ -1,5 +1,5 @@ --- -title: pullAtValue +title: Pull matching values from array tags: array,advanced firstSeen: 2017-12-19T08:06:29+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/pullBy.md b/snippets/pullBy.md index 3fca463c4..934fc7393 100644 --- a/snippets/pullBy.md +++ b/snippets/pullBy.md @@ -1,5 +1,5 @@ --- -title: pullBy +title: Pull values from array based on function tags: array,advanced firstSeen: 2018-01-26T13:48:50+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/quarterOfYear.md b/snippets/quarterOfYear.md index ec60c37ac..6e59594b5 100644 --- a/snippets/quarterOfYear.md +++ b/snippets/quarterOfYear.md @@ -1,5 +1,5 @@ --- -title: quarterOfYear +title: Quarter of year tags: date,beginner firstSeen: 2020-10-09T10:23:55+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/queryStringToObject.md b/snippets/queryStringToObject.md index e0f3be07b..c3d656e3e 100644 --- a/snippets/queryStringToObject.md +++ b/snippets/queryStringToObject.md @@ -1,5 +1,5 @@ --- -title: queryStringToObject +title: Query string to object tags: object,intermediate firstSeen: 2020-10-20T20:25:32+03:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/quickSort.md b/snippets/quickSort.md index 5d7629b8b..e97622f01 100644 --- a/snippets/quickSort.md +++ b/snippets/quickSort.md @@ -1,5 +1,5 @@ --- -title: quickSort +title: Quick sort tags: algorithm,array,recursion,advanced firstSeen: 2017-12-28T13:42:41+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/radsToDegrees.md b/snippets/radsToDegrees.md index 1e1bcbfcd..9b44adc49 100644 --- a/snippets/radsToDegrees.md +++ b/snippets/radsToDegrees.md @@ -1,5 +1,5 @@ --- -title: radsToDegrees +title: Radians to degrees tags: math,beginner firstSeen: 2018-02-14T12:24:50+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/randomAlphaNumeric.md b/snippets/randomAlphaNumeric.md index 892791b22..15ffe28a4 100644 --- a/snippets/randomAlphaNumeric.md +++ b/snippets/randomAlphaNumeric.md @@ -1,5 +1,5 @@ --- -title: randomAlphaNumeric +title: Random alphanumeric string tags: string,random,advanced firstSeen: 2020-10-06T18:33:29+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/randomBoolean.md b/snippets/randomBoolean.md index 008ffb20d..aef29e660 100644 --- a/snippets/randomBoolean.md +++ b/snippets/randomBoolean.md @@ -1,5 +1,5 @@ --- -title: randomBoolean +title: Random boolean value tags: math,random,beginner firstSeen: 2021-01-20T16:20:08+02:00 lastUpdated: 2021-01-20T16:20:08+02:00 diff --git a/snippets/randomHexColorCode.md b/snippets/randomHexColorCode.md index 423bda022..70fbfe57f 100644 --- a/snippets/randomHexColorCode.md +++ b/snippets/randomHexColorCode.md @@ -1,5 +1,5 @@ --- -title: randomHexColorCode +title: Random hex color code tags: math,random,beginner firstSeen: 2017-12-24T14:39:21+02:00 lastUpdated: 2021-01-08T00:23:44+02:00 diff --git a/snippets/randomIntArrayInRange.md b/snippets/randomIntArrayInRange.md index b3d785641..67d252152 100644 --- a/snippets/randomIntArrayInRange.md +++ b/snippets/randomIntArrayInRange.md @@ -1,5 +1,5 @@ --- -title: randomIntArrayInRange +title: Random integer array in range tags: math,random,intermediate firstSeen: 2018-01-15T13:25:18+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/randomIntegerInRange.md b/snippets/randomIntegerInRange.md index 4cf77920a..82c2f1b6a 100644 --- a/snippets/randomIntegerInRange.md +++ b/snippets/randomIntegerInRange.md @@ -1,5 +1,5 @@ --- -title: randomIntegerInRange +title: Random integer in range tags: math,random,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/randomNumberInRange.md b/snippets/randomNumberInRange.md index 83ea11b80..a39e8c06e 100644 --- a/snippets/randomNumberInRange.md +++ b/snippets/randomNumberInRange.md @@ -1,5 +1,5 @@ --- -title: randomNumberInRange +title: Random number in range tags: math,random,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/rangeGenerator.md b/snippets/rangeGenerator.md index 97aee0e4f..ba369e150 100644 --- a/snippets/rangeGenerator.md +++ b/snippets/rangeGenerator.md @@ -1,5 +1,5 @@ --- -title: rangeGenerator +title: Range generator tags: function,generator,advanced firstSeen: 2020-10-11T17:05:55+03:00 lastUpdated: 2020-10-11T17:05:55+03:00 diff --git a/snippets/readFileLines.md b/snippets/readFileLines.md index 43bd7fe6c..0e532222c 100644 --- a/snippets/readFileLines.md +++ b/snippets/readFileLines.md @@ -1,5 +1,5 @@ --- -title: readFileLines +title: Read file lines tags: node,array,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/rearg.md b/snippets/rearg.md index 4db42e3f5..6f56b6fb5 100644 --- a/snippets/rearg.md +++ b/snippets/rearg.md @@ -1,5 +1,5 @@ --- -title: rearg +title: Rearrange function arguments tags: function,intermediate firstSeen: 2018-01-28T15:04:21+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/recordAnimationFrames.md b/snippets/recordAnimationFrames.md index d6a6d50d4..5e55aca85 100644 --- a/snippets/recordAnimationFrames.md +++ b/snippets/recordAnimationFrames.md @@ -1,5 +1,5 @@ --- -title: recordAnimationFrames +title: Record animation frames tags: browser,recursion,intermediate firstSeen: 2018-02-28T08:19:07+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/redirect.md b/snippets/redirect.md index b075770a7..9525ec1d7 100644 --- a/snippets/redirect.md +++ b/snippets/redirect.md @@ -1,5 +1,5 @@ --- -title: redirect +title: Redirect to URL tags: browser,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-20T11:46:23+03:00 diff --git a/snippets/reduceSuccessive.md b/snippets/reduceSuccessive.md index 5241b40d5..769465b6d 100644 --- a/snippets/reduceSuccessive.md +++ b/snippets/reduceSuccessive.md @@ -1,5 +1,5 @@ --- -title: reduceSuccessive +title: Array of successive values tags: array,intermediate firstSeen: 2018-01-24T16:38:08+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/reduceWhich.md b/snippets/reduceWhich.md index 5eb045d78..3cfbaf0ee 100644 --- a/snippets/reduceWhich.md +++ b/snippets/reduceWhich.md @@ -1,5 +1,5 @@ --- -title: reduceWhich +title: Min and max of array based on provided function tags: array,intermediate firstSeen: 2018-01-24T12:41:03+02:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/reducedFilter.md b/snippets/reducedFilter.md index 4dda01eab..88c91ea47 100644 --- a/snippets/reducedFilter.md +++ b/snippets/reducedFilter.md @@ -1,5 +1,5 @@ --- -title: reducedFilter +title: Filter matching and unspecified values tags: array,intermediate firstSeen: 2017-12-22T09:37:36+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/reject.md b/snippets/reject.md index bf23b97f8..a834fb000 100644 --- a/snippets/reject.md +++ b/snippets/reject.md @@ -1,5 +1,5 @@ --- -title: reject +title: Reject non-matching values tags: array,beginner firstSeen: 2018-04-27T03:17:15+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/remove.md b/snippets/remove.md index 4c2a5d03a..74960f275 100644 --- a/snippets/remove.md +++ b/snippets/remove.md @@ -1,5 +1,5 @@ --- -title: remove +title: Remove matching elements from array tags: array,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/removeAccents.md b/snippets/removeAccents.md index 84d2e4fcc..09abf0496 100644 --- a/snippets/removeAccents.md +++ b/snippets/removeAccents.md @@ -1,5 +1,5 @@ --- -title: removeAccents +title: Remove accents tags: string,beginner firstSeen: 2020-10-04T02:23:40+03:00 lastUpdated: 2020-10-22T20:24:04+03:00 diff --git a/snippets/removeClass.md b/snippets/removeClass.md index f06aec984..62a39c47f 100644 --- a/snippets/removeClass.md +++ b/snippets/removeClass.md @@ -1,5 +1,5 @@ --- -title: removeClass +title: Remove class from 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/removeElement.md b/snippets/removeElement.md index b5a03130f..b215be1bc 100644 --- a/snippets/removeElement.md +++ b/snippets/removeElement.md @@ -1,5 +1,5 @@ --- -title: removeElement +title: Remove DOM element tags: browser,beginner firstSeen: 2021-01-07T00:20:34+02:00 lastUpdated: 2021-01-07T00:20:34+02:00 diff --git a/snippets/removeEventListenerAll.md b/snippets/removeEventListenerAll.md index 3a05f9fbf..f04e0a68e 100644 --- a/snippets/removeEventListenerAll.md +++ b/snippets/removeEventListenerAll.md @@ -1,5 +1,5 @@ --- -title: removeEventListenerAll +title: Remove event listeners from target tags: browser,event,intermediate firstSeen: 2021-04-22T08:53:29+03:00 lastUpdated: 2021-04-22T08:53:29+03:00 diff --git a/snippets/removeNonASCII.md b/snippets/removeNonASCII.md index 021e0dbee..cc77c0c77 100644 --- a/snippets/removeNonASCII.md +++ b/snippets/removeNonASCII.md @@ -1,5 +1,5 @@ --- -title: removeNonASCII +title: Remove non ASCII characters tags: string,regexp,intermediate firstSeen: 2018-01-26T14:00:54+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/removeWhitespace.md b/snippets/removeWhitespace.md index 5d19cf7d4..ac1ca7eeb 100644 --- a/snippets/removeWhitespace.md +++ b/snippets/removeWhitespace.md @@ -1,5 +1,5 @@ --- -title: removeWhitespace +title: Remove whitespaces tags: string,regexp,beginner firstSeen: 2020-10-13T09:37:17+03:00 lastUpdated: 2020-11-03T21:46:13+02:00 diff --git a/snippets/renameKeys.md b/snippets/renameKeys.md index b5dd4d6e4..38c7e293c 100644 --- a/snippets/renameKeys.md +++ b/snippets/renameKeys.md @@ -1,5 +1,5 @@ --- -title: renameKeys +title: Rename object keys tags: object,intermediate firstSeen: 2018-04-10T20:22:39+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/renderElement.md b/snippets/renderElement.md index 31830367d..d0330f25b 100644 --- a/snippets/renderElement.md +++ b/snippets/renderElement.md @@ -1,5 +1,5 @@ --- -title: renderElement +title: Render DOM element tags: browser,recursion,advanced firstSeen: 2020-05-03T11:55:42+03:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/repeatGenerator.md b/snippets/repeatGenerator.md index 628da49ec..0371460e8 100644 --- a/snippets/repeatGenerator.md +++ b/snippets/repeatGenerator.md @@ -1,5 +1,5 @@ --- -title: repeatGenerator +title: Repeat generator tags: function,generator,advanced firstSeen: 2020-10-11T17:05:48+03:00 lastUpdated: 2020-10-11T17:05:48+03:00 diff --git a/snippets/replaceLast.md b/snippets/replaceLast.md index 37aa9d3fa..0852b50c8 100644 --- a/snippets/replaceLast.md +++ b/snippets/replaceLast.md @@ -1,5 +1,5 @@ --- -title: replaceLast +title: Replace last occuerence in string tags: string,regexp,advanced firstSeen: 2021-04-22T09:01:22+03:00 lastUpdated: 2021-04-22T09:01:22+03:00 diff --git a/snippets/requireUncached.md b/snippets/requireUncached.md index ac4a425fd..60a762923 100644 --- a/snippets/requireUncached.md +++ b/snippets/requireUncached.md @@ -1,5 +1,5 @@ --- -title: requireUncached +title: Uncached module require tags: node,advanced firstSeen: 2020-08-07T15:49:39+03:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/resolveAfter.md b/snippets/resolveAfter.md index 205ece029..34bf88927 100644 --- a/snippets/resolveAfter.md +++ b/snippets/resolveAfter.md @@ -1,5 +1,5 @@ --- -title: resolveAfter +title: Resolve promise after given amount of time tags: function,promise,intermediate firstSeen: 2022-01-08T05:00:00-04:00 --- diff --git a/snippets/reverseNumber.md b/snippets/reverseNumber.md index a46e31544..b24e2b51f 100644 --- a/snippets/reverseNumber.md +++ b/snippets/reverseNumber.md @@ -1,5 +1,5 @@ --- -title: reverseNumber +title: Reverse number tags: math,string,beginner firstSeen: 2020-07-17T16:41:28+03:00 lastUpdated: 2020-09-18T21:19:23+03:00 diff --git a/snippets/reverseString.md b/snippets/reverseString.md index 5ba3f45a1..dea97997b 100644 --- a/snippets/reverseString.md +++ b/snippets/reverseString.md @@ -1,5 +1,5 @@ --- -title: reverseString +title: Reverse string tags: string,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-18T14:58:09+03:00 diff --git a/snippets/round.md b/snippets/round.md index d024b1d60..c860681f6 100644 --- a/snippets/round.md +++ b/snippets/round.md @@ -1,5 +1,5 @@ --- -title: round +title: Round number to given precision tags: math,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 @@ -11,7 +11,7 @@ Rounds a number to a specified amount of digits. - Omit the second argument, `decimals`, to round to an integer. ```js -const round = (n, decimals = 0) => +const round = (n, decimals = 0) => Number(`${Math.round(`${n}e${decimals}`)}e-${decimals}`); ``` diff --git a/snippets/runAsync.md b/snippets/runAsync.md index 1c33a6e2a..6e7ab78b9 100644 --- a/snippets/runAsync.md +++ b/snippets/runAsync.md @@ -1,5 +1,5 @@ --- -title: runAsync +title: Run function asynchronously tags: browser,function,promise,advanced firstSeen: 2018-01-02T02:17:52+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/runPromisesInSeries.md b/snippets/runPromisesInSeries.md index c64fea3e6..618931125 100644 --- a/snippets/runPromisesInSeries.md +++ b/snippets/runPromisesInSeries.md @@ -1,5 +1,5 @@ --- -title: runPromisesInSeries +title: Run promises in series tags: function,promise,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sample.md b/snippets/sample.md index 35f50ff83..a69b127a3 100644 --- a/snippets/sample.md +++ b/snippets/sample.md @@ -1,5 +1,5 @@ --- -title: sample +title: Random element in array tags: array,string,random,beginner firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sampleSize.md b/snippets/sampleSize.md index a3c351438..02e90de5e 100644 --- a/snippets/sampleSize.md +++ b/snippets/sampleSize.md @@ -1,5 +1,5 @@ --- -title: sampleSize +title: N random elements in array tags: array,random,intermediate firstSeen: 2017-12-31T13:56:28+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/scrollToTop.md b/snippets/scrollToTop.md index 81fcaf632..a88d20fa7 100644 --- a/snippets/scrollToTop.md +++ b/snippets/scrollToTop.md @@ -1,5 +1,5 @@ --- -title: scrollToTop +title: Scroll page to top tags: browser,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sdbm.md b/snippets/sdbm.md index aa9eaf648..b598e7c1b 100644 --- a/snippets/sdbm.md +++ b/snippets/sdbm.md @@ -1,5 +1,5 @@ --- -title: sdbm +title: Hash string into number tags: math,intermediate firstSeen: 2017-12-27T17:12:34+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/selectionSort.md b/snippets/selectionSort.md index 46459e0bf..e51b5635b 100644 --- a/snippets/selectionSort.md +++ b/snippets/selectionSort.md @@ -1,5 +1,5 @@ --- -title: selectionSort +title: Selection sort tags: algorithm,array,intermediate firstSeen: 2020-12-27T22:22:44+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/serializeCookie.md b/snippets/serializeCookie.md index e5fdfc7e0..925188bdf 100644 --- a/snippets/serializeCookie.md +++ b/snippets/serializeCookie.md @@ -1,5 +1,5 @@ --- -title: serializeCookie +title: Serialize cookie tags: browser,string,intermediate firstSeen: 2018-01-13T14:19:21+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/serializeForm.md b/snippets/serializeForm.md index f7921b5e2..e7c302b30 100644 --- a/snippets/serializeForm.md +++ b/snippets/serializeForm.md @@ -1,5 +1,5 @@ --- -title: serializeForm +title: Serialize form tags: browser,string,intermediate firstSeen: 2019-03-13T14:29:45+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/setStyle.md b/snippets/setStyle.md index 13a152b08..8b9292e9c 100644 --- a/snippets/setStyle.md +++ b/snippets/setStyle.md @@ -1,5 +1,5 @@ --- -title: setStyle +title: Set style for element tags: browser,beginner firstSeen: 2017-12-29T00:08:17+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/shallowClone.md b/snippets/shallowClone.md index 532a09d94..e2e753c6e 100644 --- a/snippets/shallowClone.md +++ b/snippets/shallowClone.md @@ -1,5 +1,5 @@ --- -title: shallowClone +title: Shallow clone object tags: object,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/shank.md b/snippets/shank.md index 4485f63fe..4d5453d93 100644 --- a/snippets/shank.md +++ b/snippets/shank.md @@ -1,5 +1,5 @@ --- -title: shank +title: Remove elements from array tags: array,intermediate firstSeen: 2018-09-27T01:55:30+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/show.md b/snippets/show.md index 813c17a85..f46667a36 100644 --- a/snippets/show.md +++ b/snippets/show.md @@ -1,5 +1,5 @@ --- -title: show +title: Show elements tags: browser,css,beginner firstSeen: 2017-12-28T23:33:21+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/shuffle.md b/snippets/shuffle.md index 0fb0b7d51..6de03d45e 100644 --- a/snippets/shuffle.md +++ b/snippets/shuffle.md @@ -1,5 +1,5 @@ --- -title: shuffle +title: Shuffle array tags: array,random,algorithm,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2021-02-20T21:17:38+02:00 diff --git a/snippets/similarity.md b/snippets/similarity.md index 97eb8d147..e748098d7 100644 --- a/snippets/similarity.md +++ b/snippets/similarity.md @@ -1,5 +1,5 @@ --- -title: similarity +title: Array similarity tags: array,math,beginner firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/size.md b/snippets/size.md index 5420092d4..9e2453b72 100644 --- a/snippets/size.md +++ b/snippets/size.md @@ -1,5 +1,5 @@ --- -title: size +title: Size of array, object or string tags: object,array,string,intermediate firstSeen: 2017-12-30T16:46:01+02:00 lastUpdated: 2020-10-21T21:17:45+03:00 diff --git a/snippets/sleep.md b/snippets/sleep.md index b4ffeb529..27b062b92 100644 --- a/snippets/sleep.md +++ b/snippets/sleep.md @@ -1,5 +1,5 @@ --- -title: sleep +title: Delay async function execution tags: function,promise,intermediate firstSeen: 2017-12-13T22:40:56+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/slugify.md b/snippets/slugify.md index 3d55a0acf..4dd13ad1f 100644 --- a/snippets/slugify.md +++ b/snippets/slugify.md @@ -1,5 +1,5 @@ --- -title: slugify +title: String to slug tags: string,regexp,intermediate firstSeen: 2020-10-04T09:45:43+03:00 lastUpdated: 2020-10-04T10:36:38+03:00 diff --git a/snippets/smoothScroll.md b/snippets/smoothScroll.md index d0bb1b8ba..303be70f0 100644 --- a/snippets/smoothScroll.md +++ b/snippets/smoothScroll.md @@ -1,5 +1,5 @@ --- -title: smoothScroll +title: Smooth scroll element into view tags: browser,css,intermediate firstSeen: 2018-03-02T18:22:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sortCharactersInString.md b/snippets/sortCharactersInString.md index bbf8904b1..8701cb724 100644 --- a/snippets/sortCharactersInString.md +++ b/snippets/sortCharactersInString.md @@ -1,5 +1,5 @@ --- -title: sortCharactersInString +title: Sort characters in string tags: string,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sortedIndex.md b/snippets/sortedIndex.md index 414f6e6cb..ca03c966b 100644 --- a/snippets/sortedIndex.md +++ b/snippets/sortedIndex.md @@ -1,5 +1,5 @@ --- -title: sortedIndex +title: Insertion index in sorted array tags: array,math,intermediate firstSeen: 2017-12-31T16:39:06+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sortedIndexBy.md b/snippets/sortedIndexBy.md index 767a58150..d90e6b297 100644 --- a/snippets/sortedIndexBy.md +++ b/snippets/sortedIndexBy.md @@ -1,5 +1,5 @@ --- -title: sortedIndexBy +title: Insertion index in sorted array based on function tags: array,math,intermediate firstSeen: 2018-01-26T13:39:09+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sortedLastIndex.md b/snippets/sortedLastIndex.md index fce3adc7a..cb196ffa5 100644 --- a/snippets/sortedLastIndex.md +++ b/snippets/sortedLastIndex.md @@ -1,5 +1,5 @@ --- -title: sortedLastIndex +title: Last insertion index in sorted array tags: array,intermediate firstSeen: 2018-01-24T13:16:47+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sortedLastIndexBy.md b/snippets/sortedLastIndexBy.md index c7642112e..1a81fedaf 100644 --- a/snippets/sortedLastIndexBy.md +++ b/snippets/sortedLastIndexBy.md @@ -1,5 +1,5 @@ --- -title: sortedLastIndexBy +title: Last insertion index in sorted array based on function tags: array,intermediate firstSeen: 2018-01-26T13:39:09+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/splitLines.md b/snippets/splitLines.md index 6c22ae763..69b98a3eb 100644 --- a/snippets/splitLines.md +++ b/snippets/splitLines.md @@ -1,5 +1,5 @@ --- -title: splitLines +title: Split into lines tags: string,regexp,beginner firstSeen: 2017-12-29T12:58:58+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/spreadOver.md b/snippets/spreadOver.md index 6a210d93f..f661f5891 100644 --- a/snippets/spreadOver.md +++ b/snippets/spreadOver.md @@ -1,5 +1,5 @@ --- -title: spreadOver +title: Convert function from variadic tags: function,intermediate firstSeen: 2017-12-22T04:33:57+02:00 lastUpdated: 2021-06-13T13:50:25+03:00 diff --git a/snippets/stableSort.md b/snippets/stableSort.md index 74f5d097c..50e8b934e 100644 --- a/snippets/stableSort.md +++ b/snippets/stableSort.md @@ -1,5 +1,5 @@ --- -title: stableSort +title: Stable sort tags: array,advanced firstSeen: 2018-02-06T18:33:49+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/standardDeviation.md b/snippets/standardDeviation.md index 383f8d2cf..fd889a3c2 100644 --- a/snippets/standardDeviation.md +++ b/snippets/standardDeviation.md @@ -1,5 +1,5 @@ --- -title: standardDeviation +title: Standard deviation tags: math,array,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/stringPermutations.md b/snippets/stringPermutations.md index c0abf9ef1..5e23ca375 100644 --- a/snippets/stringPermutations.md +++ b/snippets/stringPermutations.md @@ -1,5 +1,5 @@ --- -title: stringPermutations +title: String permutations tags: string,recursion,advanced firstSeen: 2018-02-19T15:47:47+02:00 lastUpdated: 2020-11-15T17:13:42+02:00 diff --git a/snippets/stringifyCircularJSON.md b/snippets/stringifyCircularJSON.md index baeb51528..6a0805503 100644 --- a/snippets/stringifyCircularJSON.md +++ b/snippets/stringifyCircularJSON.md @@ -1,5 +1,5 @@ --- -title: stringifyCircularJSON +title: Stringify circular JSON tags: object,advanced firstSeen: 2020-10-06T12:32:28+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/stripHTMLTags.md b/snippets/stripHTMLTags.md index f668cf41e..806910352 100644 --- a/snippets/stripHTMLTags.md +++ b/snippets/stripHTMLTags.md @@ -1,5 +1,5 @@ --- -title: stripHTMLTags +title: Strip HTML tags tags: string,regexp,beginner firstSeen: 2018-01-26T14:17:29+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/subSet.md b/snippets/subSet.md index 259928d18..baa957ae9 100644 --- a/snippets/subSet.md +++ b/snippets/subSet.md @@ -1,5 +1,5 @@ --- -title: subSet +title: Subset of iterable tags: array,intermediate firstSeen: 2020-10-11T11:53:08+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sum.md b/snippets/sum.md index 837300f20..4ba986d62 100644 --- a/snippets/sum.md +++ b/snippets/sum.md @@ -1,5 +1,5 @@ --- -title: sum +title: Array sum tags: math,array,beginner firstSeen: 2017-12-29T13:29:49+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sumBy.md b/snippets/sumBy.md index b8446b8ba..298e2a992 100644 --- a/snippets/sumBy.md +++ b/snippets/sumBy.md @@ -1,5 +1,5 @@ --- -title: sumBy +title: Mapped array sum tags: math,array,intermediate firstSeen: 2018-01-11T12:25:54+02:00 lastUpdated: 2020-11-03T22:11:18+02:00 diff --git a/snippets/sumN.md b/snippets/sumN.md index 1ebd427e9..5eebab0c2 100644 --- a/snippets/sumN.md +++ b/snippets/sumN.md @@ -1,5 +1,5 @@ --- -title: sumN +title: Sum of numbers until n tags: math,beginner firstSeen: 2020-10-08T16:52:55+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/sumPower.md b/snippets/sumPower.md index b6c591397..ce6070361 100644 --- a/snippets/sumPower.md +++ b/snippets/sumPower.md @@ -1,5 +1,5 @@ --- -title: sumPower +title: Sum of powers in range tags: math,intermediate firstSeen: 2018-01-01T15:49:25+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/superSet.md b/snippets/superSet.md index 16fac9c9d..02945f921 100644 --- a/snippets/superSet.md +++ b/snippets/superSet.md @@ -1,5 +1,5 @@ --- -title: superSet +title: Superset of iterable tags: array,intermediate firstSeen: 2020-10-11T11:53:19+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/supportsTouchEvents.md b/snippets/supportsTouchEvents.md index 38d774f97..fa5e91ae6 100644 --- a/snippets/supportsTouchEvents.md +++ b/snippets/supportsTouchEvents.md @@ -1,5 +1,5 @@ --- -title: supportsTouchEvents +title: Device supports touch events tags: browser,beginner firstSeen: 2020-05-04T12:57:23+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/swapCase.md b/snippets/swapCase.md index 990e8ade8..6c59ed176 100644 --- a/snippets/swapCase.md +++ b/snippets/swapCase.md @@ -1,5 +1,5 @@ --- -title: swapCase +title: Swapcase string tags: string,beginner firstSeen: 2020-11-15T13:09:03+02:00 lastUpdated: 2020-11-15T13:09:03+02:00 diff --git a/snippets/symbolizeKeys.md b/snippets/symbolizeKeys.md index b9f7502b5..a0d8d8f1e 100644 --- a/snippets/symbolizeKeys.md +++ b/snippets/symbolizeKeys.md @@ -1,5 +1,5 @@ --- -title: symbolizeKeys +title: Symbolize object keys tags: object,advanced firstSeen: 2021-08-01T05:00:00-04:00 --- diff --git a/snippets/symmetricDifference.md b/snippets/symmetricDifference.md index 16f2168a5..22c576801 100644 --- a/snippets/symmetricDifference.md +++ b/snippets/symmetricDifference.md @@ -1,5 +1,5 @@ --- -title: symmetricDifference +title: Array symmetric difference tags: array,math,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/symmetricDifferenceBy.md b/snippets/symmetricDifferenceBy.md index b2eec29b0..72deff905 100644 --- a/snippets/symmetricDifferenceBy.md +++ b/snippets/symmetricDifferenceBy.md @@ -1,5 +1,5 @@ --- -title: symmetricDifferenceBy +title: Mapped array symmetric difference tags: array,intermediate firstSeen: 2018-01-24T11:59:02+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/symmetricDifferenceWith.md b/snippets/symmetricDifferenceWith.md index 5acf50477..68751aef7 100644 --- a/snippets/symmetricDifferenceWith.md +++ b/snippets/symmetricDifferenceWith.md @@ -1,5 +1,5 @@ --- -title: symmetricDifferenceWith +title: Array symmetric difference tags: array,intermediate firstSeen: 2018-01-24T11:59:02+02:00 lastUpdated: 2020-10-18T14:58:09+03:00 diff --git a/snippets/tail.md b/snippets/tail.md index 5d7d15ef8..3cbc44472 100644 --- a/snippets/tail.md +++ b/snippets/tail.md @@ -1,5 +1,5 @@ --- -title: tail +title: Array tail tags: array,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/take.md b/snippets/take.md index 0087c3631..730793cff 100644 --- a/snippets/take.md +++ b/snippets/take.md @@ -1,5 +1,5 @@ --- -title: take +title: Remove list elements tags: array,beginner firstSeen: 2017-12-14T11:35:14+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/takeRight.md b/snippets/takeRight.md index ea8fac8ba..586ae1de6 100644 --- a/snippets/takeRight.md +++ b/snippets/takeRight.md @@ -1,5 +1,5 @@ --- -title: takeRight +title: Remove list elements from the end tags: array,intermediate firstSeen: 2017-12-15T02:00:10+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/takeRightUntil.md b/snippets/takeRightUntil.md index 388e83af9..2e334c388 100644 --- a/snippets/takeRightUntil.md +++ b/snippets/takeRightUntil.md @@ -1,5 +1,5 @@ --- -title: takeRightUntil +title: Remove list elements from the end until condition is met tags: array,intermediate firstSeen: 2020-11-29T12:04:53+02:00 lastUpdated: 2020-11-29T12:04:53+02:00 diff --git a/snippets/takeRightWhile.md b/snippets/takeRightWhile.md index 9539f867c..3c64bee5c 100644 --- a/snippets/takeRightWhile.md +++ b/snippets/takeRightWhile.md @@ -1,5 +1,5 @@ --- -title: takeRightWhile +title: Remove list elements from the end while condition is met tags: array,intermediate firstSeen: 2018-01-26T12:55:31+02:00 lastUpdated: 2020-11-29T12:04:53+02:00 diff --git a/snippets/takeUntil.md b/snippets/takeUntil.md index 553528425..820900f37 100644 --- a/snippets/takeUntil.md +++ b/snippets/takeUntil.md @@ -1,5 +1,5 @@ --- -title: takeUntil +title: Remove list elements until condition is met tags: array,intermediate firstSeen: 2020-11-29T12:04:53+02:00 lastUpdated: 2020-11-29T12:04:53+02:00 diff --git a/snippets/takeWhile.md b/snippets/takeWhile.md index 4a551f381..49dcf2025 100644 --- a/snippets/takeWhile.md +++ b/snippets/takeWhile.md @@ -1,5 +1,5 @@ --- -title: takeWhile +title: Remove list elements while condition is met tags: array,intermediate firstSeen: 2018-01-26T12:55:31+02:00 lastUpdated: 2020-11-29T12:04:53+02:00 diff --git a/snippets/throttle.md b/snippets/throttle.md index 9bc0fcdc4..2109b1f08 100644 --- a/snippets/throttle.md +++ b/snippets/throttle.md @@ -1,5 +1,5 @@ --- -title: throttle +title: Throttle function tags: function,advanced firstSeen: 2018-01-28T15:23:01+02:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/timeTaken.md b/snippets/timeTaken.md index f5b934153..5e9ce6105 100644 --- a/snippets/timeTaken.md +++ b/snippets/timeTaken.md @@ -1,5 +1,5 @@ --- -title: timeTaken +title: Time taken by function tags: function,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/times.md b/snippets/times.md index fabb6415b..17ae9ddfa 100644 --- a/snippets/times.md +++ b/snippets/times.md @@ -1,11 +1,11 @@ --- -title: times +title: Iterate n times tags: function,intermediate firstSeen: 2018-01-24T13:50:49+02:00 lastUpdated: 2020-10-20T11:21:07+03:00 --- -Iterates over a callback `n` times +Iterates over a callback `n` times. - Use `Function.prototype.call()` to call `fn` `n` times or until it returns `false`. - Omit the last argument, `context`, to use an `undefined` object (or the global object in non-strict mode). diff --git a/snippets/toCamelCase.md b/snippets/toCamelCase.md index e5fe8ea4f..ad463c55d 100644 --- a/snippets/toCamelCase.md +++ b/snippets/toCamelCase.md @@ -1,5 +1,5 @@ --- -title: toCamelCase +title: Camelcase string tags: string,regexp,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/toCharArray.md b/snippets/toCharArray.md index 433a0695b..30e0c9c02 100644 --- a/snippets/toCharArray.md +++ b/snippets/toCharArray.md @@ -1,5 +1,5 @@ --- -title: toCharArray +title: String to character array tags: string,beginner firstSeen: 2020-10-08T15:17:22+03:00 lastUpdated: 2020-10-08T15:17:22+03:00 diff --git a/snippets/toCurrency.md b/snippets/toCurrency.md index 8c47249c4..327aa31d5 100644 --- a/snippets/toCurrency.md +++ b/snippets/toCurrency.md @@ -1,5 +1,5 @@ --- -title: toCurrency +title: Number to currency string tags: math,string,intermediate firstSeen: 2018-01-27T17:15:48+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/toDecimalMark.md b/snippets/toDecimalMark.md index 2a5e82c81..0a8bad704 100644 --- a/snippets/toDecimalMark.md +++ b/snippets/toDecimalMark.md @@ -1,5 +1,5 @@ --- -title: toDecimalMark +title: Number to decimal mark tags: math,beginner firstSeen: 2017-12-21T16:29:51+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/toHSLArray.md b/snippets/toHSLArray.md index 035d23872..5ae7ebde7 100644 --- a/snippets/toHSLArray.md +++ b/snippets/toHSLArray.md @@ -1,5 +1,5 @@ --- -title: toHSLArray +title: HSL to array tags: string,browser,regexp,beginner firstSeen: 2020-10-16T21:46:29+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/toHSLObject.md b/snippets/toHSLObject.md index d267b766e..78951f157 100644 --- a/snippets/toHSLObject.md +++ b/snippets/toHSLObject.md @@ -1,5 +1,5 @@ --- -title: toHSLObject +title: HSL to object tags: string,browser,regexp,intermediate firstSeen: 2020-10-16T21:48:31+03:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/toHash.md b/snippets/toHash.md index 0e2df44f9..5e4c98df1 100644 --- a/snippets/toHash.md +++ b/snippets/toHash.md @@ -1,5 +1,5 @@ --- -title: toHash +title: Iterable to hash tags: array,intermediate firstSeen: 2018-05-31T02:14:04+03:00 lastUpdated: 2022-01-30T12:45:30+03:00 diff --git a/snippets/toISOStringWithTimezone.md b/snippets/toISOStringWithTimezone.md index c270355f2..9461ef38f 100644 --- a/snippets/toISOStringWithTimezone.md +++ b/snippets/toISOStringWithTimezone.md @@ -1,5 +1,5 @@ --- -title: toISOStringWithTimezone +title: Date to ISO format with timezone tags: date,intermediate firstSeen: 2020-10-07T09:25:05+03:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/toKebabCase.md b/snippets/toKebabCase.md index 7b7b60fb8..1dc8b4129 100644 --- a/snippets/toKebabCase.md +++ b/snippets/toKebabCase.md @@ -1,5 +1,5 @@ --- -title: toKebabCase +title: Kebabcase string tags: string,regexp,intermediate firstSeen: 2017-12-22T19:14:51+02:00 lastUpdated: 2020-12-16T13:42:27+02:00 diff --git a/snippets/toOrdinalSuffix.md b/snippets/toOrdinalSuffix.md index a443c0e06..074769466 100644 --- a/snippets/toOrdinalSuffix.md +++ b/snippets/toOrdinalSuffix.md @@ -1,5 +1,5 @@ --- -title: toOrdinalSuffix +title: Number to ordinal suffix tags: math,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-11-13T19:49:57+02:00 diff --git a/snippets/toPairs.md b/snippets/toPairs.md index 2b7266b93..1af4561b3 100644 --- a/snippets/toPairs.md +++ b/snippets/toPairs.md @@ -1,5 +1,5 @@ --- -title: toPairs +title: Object to pairs tags: object,array,intermediate firstSeen: 2020-03-23T15:07:23+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/toPascalCase.md b/snippets/toPascalCase.md index d40e8d2f7..90f5aaf55 100644 --- a/snippets/toPascalCase.md +++ b/snippets/toPascalCase.md @@ -1,5 +1,5 @@ --- -title: toPascalCase +title: Pascalcase string tags: string,regexp,intermediate firstSeen: 2021-09-08T19:21:13+00:00 --- diff --git a/snippets/toRGBArray.md b/snippets/toRGBArray.md index e4bfaa341..9346b3b2d 100644 --- a/snippets/toRGBArray.md +++ b/snippets/toRGBArray.md @@ -1,5 +1,5 @@ --- -title: toRGBArray +title: RGB to array tags: string,browser,regexp,beginner firstSeen: 2020-10-14T20:36:18+03:00 lastUpdated: 2021-06-13T13:50:25+03:00 diff --git a/snippets/toRGBObject.md b/snippets/toRGBObject.md index 785dd4859..3005601c0 100644 --- a/snippets/toRGBObject.md +++ b/snippets/toRGBObject.md @@ -1,5 +1,5 @@ --- -title: toRGBObject +title: RGB to object tags: string,browser,regexp,intermediate firstSeen: 2020-10-14T21:58:14+03:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/toRomanNumeral.md b/snippets/toRomanNumeral.md index f14837036..0f93cb0a8 100644 --- a/snippets/toRomanNumeral.md +++ b/snippets/toRomanNumeral.md @@ -1,5 +1,5 @@ --- -title: toRomanNumeral +title: Integer to roman numeral tags: math,string,intermediate firstSeen: 2020-10-06T19:56:22+03:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/toSafeInteger.md b/snippets/toSafeInteger.md index 50462dbab..e278d734a 100644 --- a/snippets/toSafeInteger.md +++ b/snippets/toSafeInteger.md @@ -1,5 +1,5 @@ --- -title: toSafeInteger +title: Value to safe integer tags: math,beginner firstSeen: 2018-01-08T17:12:46+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/toSnakeCase.md b/snippets/toSnakeCase.md index f55798103..97eba9150 100644 --- a/snippets/toSnakeCase.md +++ b/snippets/toSnakeCase.md @@ -1,5 +1,5 @@ --- -title: toSnakeCase +title: Snakecase string tags: string,regexp,intermediate firstSeen: 2017-12-22T18:13:22+02:00 lastUpdated: 2021-06-28T15:27:44+03:00 diff --git a/snippets/toTitleCase.md b/snippets/toTitleCase.md index 2147c34c5..3fa9042f3 100644 --- a/snippets/toTitleCase.md +++ b/snippets/toTitleCase.md @@ -1,5 +1,5 @@ --- -title: toTitleCase +title: Titlecase string tags: string,regexp,intermediate firstSeen: 2018-10-19T04:49:34+03:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/toggleClass.md b/snippets/toggleClass.md index 2eb4f5c07..121cf89aa 100644 --- a/snippets/toggleClass.md +++ b/snippets/toggleClass.md @@ -1,5 +1,5 @@ --- -title: toggleClass +title: Toggle class of HTML element tags: browser,beginner firstSeen: 2017-12-28T23:46:33+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/tomorrow.md b/snippets/tomorrow.md index f0aa229bc..e47a6a6bb 100644 --- a/snippets/tomorrow.md +++ b/snippets/tomorrow.md @@ -1,5 +1,5 @@ --- -title: tomorrow +title: Date of tomorrow tags: date,intermediate firstSeen: 2017-12-26T18:56:24+02:00 lastUpdated: 2020-10-22T20:24:30+03:00 diff --git a/snippets/transform.md b/snippets/transform.md index 38fcd3ed5..1f5eb23dc 100644 --- a/snippets/transform.md +++ b/snippets/transform.md @@ -1,5 +1,5 @@ --- -title: transform +title: Transform object tags: object,intermediate firstSeen: 2018-01-12T13:55:49+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/triggerEvent.md b/snippets/triggerEvent.md index 6abb34027..e27edd68d 100644 --- a/snippets/triggerEvent.md +++ b/snippets/triggerEvent.md @@ -1,5 +1,5 @@ --- -title: triggerEvent +title: Trigger event on HTML element tags: browser,event,intermediate firstSeen: 2018-06-19T20:57:58+03:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/truncateString.md b/snippets/truncateString.md index a91051c72..5dd483813 100644 --- a/snippets/truncateString.md +++ b/snippets/truncateString.md @@ -1,5 +1,5 @@ --- -title: truncateString +title: Truncate string tags: string,beginner firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-21T21:17:45+03:00 diff --git a/snippets/truncateStringAtWhitespace.md b/snippets/truncateStringAtWhitespace.md index 46865a6b7..653f8436d 100644 --- a/snippets/truncateStringAtWhitespace.md +++ b/snippets/truncateStringAtWhitespace.md @@ -1,5 +1,5 @@ --- -title: truncateStringAtWhitespace +title: Truncate string at whitespace tags: string,intermediate firstSeen: 2020-10-19T11:11:16+03:00 lastUpdated: 2020-10-21T21:17:45+03:00 diff --git a/snippets/truthCheckCollection.md b/snippets/truthCheckCollection.md index 43a84b540..90100da3d 100644 --- a/snippets/truthCheckCollection.md +++ b/snippets/truthCheckCollection.md @@ -1,5 +1,5 @@ --- -title: truthCheckCollection +title: Truth check collection tags: object,logic,array,intermediate firstSeen: 2017-12-18T13:05:21+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/unary.md b/snippets/unary.md index 012d2106c..61a010f98 100644 --- a/snippets/unary.md +++ b/snippets/unary.md @@ -1,5 +1,5 @@ --- -title: unary +title: Unary function arity tags: function,beginner firstSeen: 2018-01-24T13:22:32+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/uncurry.md b/snippets/uncurry.md index c059f60ea..7c04b8e95 100644 --- a/snippets/uncurry.md +++ b/snippets/uncurry.md @@ -1,5 +1,5 @@ --- -title: uncurry +title: Uncurry function tags: function,advanced firstSeen: 2018-02-14T11:56:44+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/unescapeHTML.md b/snippets/unescapeHTML.md index 873b84e71..5a54fb57a 100644 --- a/snippets/unescapeHTML.md +++ b/snippets/unescapeHTML.md @@ -1,5 +1,5 @@ --- -title: unescapeHTML +title: Unescape HTML tags: string,browser,regexp,beginner firstSeen: 2017-12-29T15:09:10+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/unflattenObject.md b/snippets/unflattenObject.md index 9a2faf4ca..6cb02c110 100644 --- a/snippets/unflattenObject.md +++ b/snippets/unflattenObject.md @@ -1,5 +1,5 @@ --- -title: unflattenObject +title: Unflatten object tags: object,advanced firstSeen: 2018-02-07T11:30:18+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/unfold.md b/snippets/unfold.md index 0c6a513a7..e8f6a2141 100644 --- a/snippets/unfold.md +++ b/snippets/unfold.md @@ -1,5 +1,5 @@ --- -title: unfold +title: Unfold array tags: function,array,intermediate firstSeen: 2018-01-24T16:22:14+02:00 lastUpdated: 2020-09-15T16:28:04+03:00 diff --git a/snippets/union.md b/snippets/union.md index 107df28e7..903b118ed 100644 --- a/snippets/union.md +++ b/snippets/union.md @@ -1,5 +1,5 @@ --- -title: union +title: Array union tags: array,beginner firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/unionBy.md b/snippets/unionBy.md index 0ebf48124..36451a5d0 100644 --- a/snippets/unionBy.md +++ b/snippets/unionBy.md @@ -1,5 +1,5 @@ --- -title: unionBy +title: Mapped array union tags: array,intermediate firstSeen: 2018-01-24T12:19:41+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/unionWith.md b/snippets/unionWith.md index fe70c3c0f..f188344ce 100644 --- a/snippets/unionWith.md +++ b/snippets/unionWith.md @@ -1,5 +1,5 @@ --- -title: unionWith +title: Array union based on function tags: array,intermediate firstSeen: 2018-01-24T12:19:41+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/uniqueElements.md b/snippets/uniqueElements.md index 50bd8baca..02bd94d75 100644 --- a/snippets/uniqueElements.md +++ b/snippets/uniqueElements.md @@ -1,5 +1,5 @@ --- -title: uniqueElements +title: Unique values in array tags: array,beginner firstSeen: 2018-01-17T19:02:49+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/uniqueElementsBy.md b/snippets/uniqueElementsBy.md index 68b295d3e..50cb29019 100644 --- a/snippets/uniqueElementsBy.md +++ b/snippets/uniqueElementsBy.md @@ -1,5 +1,5 @@ --- -title: uniqueElementsBy +title: Unique values in array based on function tags: array,intermediate firstSeen: 2018-07-18T20:49:07+03:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/uniqueElementsByRight.md b/snippets/uniqueElementsByRight.md index 299016057..d35a595f3 100644 --- a/snippets/uniqueElementsByRight.md +++ b/snippets/uniqueElementsByRight.md @@ -1,5 +1,5 @@ --- -title: uniqueElementsByRight +title: Reversed unique values in array based on function tags: array,intermediate firstSeen: 2018-07-18T20:49:07+03:00 lastUpdated: 2021-10-13T19:29:39+02:00 diff --git a/snippets/uniqueSymmetricDifference.md b/snippets/uniqueSymmetricDifference.md index bfce655cb..93d5dc80f 100644 --- a/snippets/uniqueSymmetricDifference.md +++ b/snippets/uniqueSymmetricDifference.md @@ -1,5 +1,5 @@ --- -title: uniqueSymmetricDifference +title: Array unique symmetric difference tags: array,math,intermediate firstSeen: 2018-08-17T08:37:08+03:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/untildify.md b/snippets/untildify.md index 86879d038..92fea3c6d 100644 --- a/snippets/untildify.md +++ b/snippets/untildify.md @@ -1,5 +1,5 @@ --- -title: untildify +title: Convert to absolute path tags: node,string,beginner firstSeen: 2018-01-01T17:43:18+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/unzip.md b/snippets/unzip.md index db7e93819..30ee20cc6 100644 --- a/snippets/unzip.md +++ b/snippets/unzip.md @@ -1,5 +1,5 @@ --- -title: unzip +title: Ungroup array elements tags: array,intermediate firstSeen: 2018-01-24T12:35:25+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/unzipWith.md b/snippets/unzipWith.md index 82b5de00e..19d0780d4 100644 --- a/snippets/unzipWith.md +++ b/snippets/unzipWith.md @@ -1,5 +1,5 @@ --- -title: unzipWith +title: Ungroup array elements based on function tags: array,advanced firstSeen: 2018-01-24T12:44:16+02:00 lastUpdated: 2022-01-23T13:18:50+03:00 diff --git a/snippets/validateNumber.md b/snippets/validateNumber.md index beefebc12..af5f0eee0 100644 --- a/snippets/validateNumber.md +++ b/snippets/validateNumber.md @@ -1,5 +1,5 @@ --- -title: validateNumber +title: Validate number tags: math,intermediate firstSeen: 2017-12-17T17:55:51+02:00 lastUpdated: 2020-10-22T20:23:26+03:00 diff --git a/snippets/vectorAngle.md b/snippets/vectorAngle.md index 9136f0127..ea94dae13 100644 --- a/snippets/vectorAngle.md +++ b/snippets/vectorAngle.md @@ -1,5 +1,5 @@ --- -title: vectorAngle +title: Vector angle tags: math,beginner firstSeen: 2019-12-16T16:43:13+02:00 lastUpdated: 2021-01-08T00:23:44+02:00 diff --git a/snippets/vectorDistance.md b/snippets/vectorDistance.md index 8d237cb3b..be5a15ac1 100644 --- a/snippets/vectorDistance.md +++ b/snippets/vectorDistance.md @@ -1,5 +1,5 @@ --- -title: vectorDistance +title: Vector distance tags: math,algorithm,beginner firstSeen: 2019-02-23T19:13:48+02:00 lastUpdated: 2020-12-28T13:49:24+02:00 diff --git a/snippets/walkThrough.md b/snippets/walkThrough.md index 989f46e4f..8cca41a37 100644 --- a/snippets/walkThrough.md +++ b/snippets/walkThrough.md @@ -1,5 +1,5 @@ --- -title: walkThrough +title: Walk through object tags: object,recursion,generator,advanced firstSeen: 2020-12-31T13:03:15+02:00 lastUpdated: 2021-11-15T13:18:18+02:00 diff --git a/snippets/weekOfYear.md b/snippets/weekOfYear.md index 6a6f54863..ae5c81b1f 100644 --- a/snippets/weekOfYear.md +++ b/snippets/weekOfYear.md @@ -1,5 +1,5 @@ --- -title: weekOfYear +title: Week of year tags: date,advanced firstSeen: 2021-08-15T05:00:00-04:00 --- diff --git a/snippets/weightedAverage.md b/snippets/weightedAverage.md index 92e384626..acfed20b2 100644 --- a/snippets/weightedAverage.md +++ b/snippets/weightedAverage.md @@ -1,5 +1,5 @@ --- -title: weightedAverage +title: Weighted average tags: math,intermediate firstSeen: 2020-10-04T00:38:33+03:00 lastUpdated: 2020-11-03T21:46:13+02:00 diff --git a/snippets/weightedSample.md b/snippets/weightedSample.md index d4e9fabd6..3265224c8 100644 --- a/snippets/weightedSample.md +++ b/snippets/weightedSample.md @@ -1,5 +1,5 @@ --- -title: weightedSample +title: Weighted sample tags: array,random,advanced firstSeen: 2019-12-31T11:34:26+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/when.md b/snippets/when.md index 25f0e4bfe..5ef14250a 100644 --- a/snippets/when.md +++ b/snippets/when.md @@ -1,5 +1,5 @@ --- -title: when +title: Apply function when condition is met tags: function,logic,beginner firstSeen: 2018-04-19T03:45:32+03:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/without.md b/snippets/without.md index de2b62761..449e7e4e7 100644 --- a/snippets/without.md +++ b/snippets/without.md @@ -1,5 +1,5 @@ --- -title: without +title: Filter out matching array elements tags: array,beginner firstSeen: 2017-12-15T09:35:30+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/wordWrap.md b/snippets/wordWrap.md index d9126c26c..2a6400fd0 100644 --- a/snippets/wordWrap.md +++ b/snippets/wordWrap.md @@ -1,5 +1,5 @@ --- -title: wordWrap +title: Word wrap string tags: string,regexp,intermediate firstSeen: 2020-10-06T11:48:41+03:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/words.md b/snippets/words.md index 044ef760b..8e59ac49b 100644 --- a/snippets/words.md +++ b/snippets/words.md @@ -1,5 +1,5 @@ --- -title: words +title: String to words tags: string,regexp,intermediate firstSeen: 2017-12-21T14:50:57+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/xProd.md b/snippets/xProd.md index 6ff1cf7a2..dcd4f0707 100644 --- a/snippets/xProd.md +++ b/snippets/xProd.md @@ -1,5 +1,5 @@ --- -title: xProd +title: Cross product of arrays tags: array,math,intermediate firstSeen: 2018-01-24T15:55:03+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/xor.md b/snippets/xor.md index 736731015..a6a38dacc 100644 --- a/snippets/xor.md +++ b/snippets/xor.md @@ -1,5 +1,5 @@ --- -title: xor +title: Logical xor tags: math,logic,beginner unlisted: true firstSeen: 2020-10-05T21:19:21+03:00 diff --git a/snippets/yesNo.md b/snippets/yesNo.md index 95372f2e6..0b0a5f23a 100644 --- a/snippets/yesNo.md +++ b/snippets/yesNo.md @@ -1,5 +1,5 @@ --- -title: yesNo +title: Check yes/no string tags: string,regexp,intermediate unlisted: true firstSeen: 2017-12-30T18:35:54+02:00 diff --git a/snippets/yesterday.md b/snippets/yesterday.md index 42dc14de6..3411a7622 100644 --- a/snippets/yesterday.md +++ b/snippets/yesterday.md @@ -1,5 +1,5 @@ --- -title: yesterday +title: Date of yesterday tags: date,intermediate firstSeen: 2019-07-19T10:57:21+03:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/zip.md b/snippets/zip.md index c7f138be6..514972d25 100644 --- a/snippets/zip.md +++ b/snippets/zip.md @@ -1,5 +1,5 @@ --- -title: zip +title: Group array elements tags: array,intermediate firstSeen: 2017-12-17T16:41:31+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/zipObject.md b/snippets/zipObject.md index 780e6a0ad..dc7cae511 100644 --- a/snippets/zipObject.md +++ b/snippets/zipObject.md @@ -1,5 +1,5 @@ --- -title: zipObject +title: Group array into object tags: array,object,intermediate firstSeen: 2017-12-21T00:55:18+02:00 lastUpdated: 2020-10-22T20:24:44+03:00 diff --git a/snippets/zipWith.md b/snippets/zipWith.md index 094fc4944..b0da2f9b7 100644 --- a/snippets/zipWith.md +++ b/snippets/zipWith.md @@ -1,5 +1,5 @@ --- -title: zipWith +title: Group array elements based on function tags: array,advanced firstSeen: 2018-01-20T17:21:34+02:00 lastUpdated: 2020-11-03T21:46:13+02:00