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/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