diff --git a/snippets/all.md b/snippets/all.md index aa5b25197..c8b95a7c4 100644 --- a/snippets/all.md +++ b/snippets/all.md @@ -1,6 +1,6 @@ --- title: all -tags: array,function,beginner +tags: array,beginner --- Returns `true` if the provided predicate function returns `true` for all elements in a collection, `false` otherwise. diff --git a/snippets/allEqual.md b/snippets/allEqual.md index 094077b13..2bed23ade 100644 --- a/snippets/allEqual.md +++ b/snippets/allEqual.md @@ -1,6 +1,6 @@ --- title: allEqual -tags: array,function,beginner +tags: array,beginner --- Check if all elements in an array are equal. diff --git a/snippets/any.md b/snippets/any.md index 7681c6427..013b84a5d 100644 --- a/snippets/any.md +++ b/snippets/any.md @@ -1,6 +1,6 @@ --- title: any -tags: array,function,beginner +tags: array,beginner --- Returns `true` if the provided predicate function returns `true` for at least one element in a collection, `false` otherwise. diff --git a/snippets/differenceWith.md b/snippets/differenceWith.md index 589f534d8..95462236a 100644 --- a/snippets/differenceWith.md +++ b/snippets/differenceWith.md @@ -1,6 +1,6 @@ --- title: differenceWith -tags: array,function,intermediate +tags: array,intermediate --- Filters out all values from an array for which the comparator function does not return `true`. @@ -13,4 +13,4 @@ const differenceWith = (arr, val, comp) => arr.filter(a => val.findIndex(b => co ```js differenceWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b)); // [1, 1.2] -``` \ No newline at end of file +``` diff --git a/snippets/dropRightWhile.md b/snippets/dropRightWhile.md index a64a4ad15..0da2380a0 100644 --- a/snippets/dropRightWhile.md +++ b/snippets/dropRightWhile.md @@ -1,6 +1,6 @@ --- title: dropRightWhile -tags: array,function,intermediate +tags: array,intermediate --- Removes elements from the end of an array until the passed function returns `true`. Returns the remaining elements in the array. diff --git a/snippets/dropWhile.md b/snippets/dropWhile.md index df7d54a7d..83f6471fb 100644 --- a/snippets/dropWhile.md +++ b/snippets/dropWhile.md @@ -1,6 +1,6 @@ --- title: dropWhile -tags: array,function,intermediate +tags: array,intermediate --- Removes elements in an array until the passed function returns `true`. Returns the remaining elements in the array. diff --git a/snippets/findKey.md b/snippets/findKey.md index 8fb1a5271..f9033d9a9 100644 --- a/snippets/findKey.md +++ b/snippets/findKey.md @@ -1,6 +1,6 @@ --- title: findKey -tags: object,function,intermediate +tags: object,intermediate --- Returns the first key that satisfies the provided testing function. Otherwise `undefined` is returned. diff --git a/snippets/findLastIndex.md b/snippets/findLastIndex.md index db5f69ccf..55fa3341f 100644 --- a/snippets/findLastIndex.md +++ b/snippets/findLastIndex.md @@ -1,6 +1,6 @@ --- title: findLastIndex -tags: array,function,intermediate +tags: array,intermediate --- Returns the index of the last element for which the provided function returns a truthy value. diff --git a/snippets/findLastKey.md b/snippets/findLastKey.md index 70e66bc30..d12a24143 100644 --- a/snippets/findLastKey.md +++ b/snippets/findLastKey.md @@ -1,6 +1,6 @@ --- title: findLastKey -tags: object,function,intermediate +tags: object,intermediate --- Returns the last key that satisfies the provided testing function. diff --git a/snippets/forEachRight.md b/snippets/forEachRight.md index c893c62f4..8e9686f2c 100644 --- a/snippets/forEachRight.md +++ b/snippets/forEachRight.md @@ -1,6 +1,6 @@ --- title: forEachRight -tags: array,function,intermediate +tags: array,intermediate --- Executes a provided function once for each array element, starting from the array's last element. diff --git a/snippets/intersectionWith.md b/snippets/intersectionWith.md index 46a58d8bf..6daa92e1f 100644 --- a/snippets/intersectionWith.md +++ b/snippets/intersectionWith.md @@ -1,6 +1,6 @@ --- title: intersectionWith -tags: array,function,intermediate +tags: array,intermediate --- Returns the elements that exist in both arrays, using a provided comparator function. diff --git a/snippets/invertKeyValues.md b/snippets/invertKeyValues.md index 36bb55b01..f1e9aac4f 100644 --- a/snippets/invertKeyValues.md +++ b/snippets/invertKeyValues.md @@ -1,6 +1,6 @@ --- title: invertKeyValues -tags: object,function,intermediate +tags: object,intermediate --- Inverts the key-value pairs of an object, without mutating it. The corresponding inverted value of each inverted key is an array of keys responsible for generating the inverted value. If a function is supplied, it is applied to each inverted key. diff --git a/snippets/mapKeys.md b/snippets/mapKeys.md index d6130ed61..7191abdf5 100644 --- a/snippets/mapKeys.md +++ b/snippets/mapKeys.md @@ -1,6 +1,6 @@ --- title: mapKeys -tags: object,function,intermediate +tags: object,intermediate --- Creates an object with keys generated by running the provided function for each key and the same values as the provided object. diff --git a/snippets/mapValues.md b/snippets/mapValues.md index 75cbc3521..3db41738b 100644 --- a/snippets/mapValues.md +++ b/snippets/mapValues.md @@ -1,6 +1,6 @@ --- title: mapValues -tags: object,function,intermediate +tags: object,intermediate --- Creates an object with the same keys as the provided object and values generated by running the provided function for each value. diff --git a/snippets/matchesWith.md b/snippets/matchesWith.md index cd414694c..c08773010 100644 --- a/snippets/matchesWith.md +++ b/snippets/matchesWith.md @@ -1,6 +1,6 @@ --- title: matchesWith -tags: object,type,function,intermediate +tags: object,type,intermediate --- Compares two objects to determine if the first one contains equivalent property values to the second one, based on a provided function. @@ -24,4 +24,4 @@ matchesWith( { greeting: 'hi' }, (oV, sV) => isGreeting(oV) && isGreeting(sV) ); // true -``` \ No newline at end of file +``` diff --git a/snippets/none.md b/snippets/none.md index 36d11ccb6..949bc3380 100644 --- a/snippets/none.md +++ b/snippets/none.md @@ -1,6 +1,6 @@ --- title: none -tags: array,function,beginner +tags: array,beginner --- Returns `true` if the provided predicate function returns `false` for all elements in a collection, `false` otherwise. @@ -15,4 +15,4 @@ const none = (arr, fn = Boolean) => !arr.some(fn); ```js none([0, 1, 3, 0], x => x == 2); // true none([0, 0, 0]); // true -``` \ No newline at end of file +``` diff --git a/snippets/objectToQueryString.md b/snippets/objectToQueryString.md index 374ddffe3..c3cae1114 100644 --- a/snippets/objectToQueryString.md +++ b/snippets/objectToQueryString.md @@ -1,6 +1,6 @@ --- title: objectToQueryString -tags: object,function,intermediate +tags: object,intermediate --- Returns a query string generated from the key-value pairs of the given object. diff --git a/snippets/partition.md b/snippets/partition.md index cad698350..1e45e526b 100644 --- a/snippets/partition.md +++ b/snippets/partition.md @@ -1,6 +1,6 @@ --- title: partition -tags: array,object,function,intermediate +tags: array,object,intermediate --- Groups the elements into two arrays, depending on the provided function's truthiness for each element. diff --git a/snippets/reduceSuccessive.md b/snippets/reduceSuccessive.md index 0f9799f34..5d7e36e87 100644 --- a/snippets/reduceSuccessive.md +++ b/snippets/reduceSuccessive.md @@ -1,6 +1,6 @@ --- title: reduceSuccessive -tags: array,function,intermediate +tags: array,intermediate --- Applies a function against an accumulator and each element in the array (from left to right), returning an array of successively reduced values. diff --git a/snippets/reduceWhich.md b/snippets/reduceWhich.md index 1cc48f20e..056ef261d 100644 --- a/snippets/reduceWhich.md +++ b/snippets/reduceWhich.md @@ -1,6 +1,6 @@ --- title: reduceWhich -tags: array,function,intermediate +tags: array,intermediate --- Returns the minimum/maximum value of an array, after applying the provided function to set comparing rule. diff --git a/snippets/takeRightWhile.md b/snippets/takeRightWhile.md index 27db156ab..90bcc913c 100644 --- a/snippets/takeRightWhile.md +++ b/snippets/takeRightWhile.md @@ -1,6 +1,6 @@ --- title: takeRightWhile -tags: array,function,intermediate +tags: array,intermediate --- Removes elements from the end of an array until the passed function returns `true`. Returns the removed elements. diff --git a/snippets/takeWhile.md b/snippets/takeWhile.md index 27cb58079..852948578 100644 --- a/snippets/takeWhile.md +++ b/snippets/takeWhile.md @@ -1,6 +1,6 @@ --- title: takeWhile -tags: array,function,intermediate +tags: array,intermediate --- Removes elements in an array until the passed function returns `true`. Returns the removed elements. diff --git a/snippets/unionWith.md b/snippets/unionWith.md index 032cb1685..6c4e949fd 100644 --- a/snippets/unionWith.md +++ b/snippets/unionWith.md @@ -1,6 +1,6 @@ --- title: unionWith -tags: array,function,intermediate +tags: array,intermediate --- Returns every element that exists in any of the two arrays once, using a provided comparator function. diff --git a/snippets/unzipWith.md b/snippets/unzipWith.md index 442972715..83f6419ee 100644 --- a/snippets/unzipWith.md +++ b/snippets/unzipWith.md @@ -1,6 +1,6 @@ --- title: unzipWith -tags: array,function,advanced +tags: array,advanced --- Creates an array of elements, ungrouping the elements in an array produced by [zip](#zip) and applying the provided function. diff --git a/snippets/zipWith.md b/snippets/zipWith.md index ac9a179e7..9823dadfe 100644 --- a/snippets/zipWith.md +++ b/snippets/zipWith.md @@ -1,6 +1,6 @@ --- title: zipWith -tags: array,function,advanced +tags: array,advanced --- Creates an array of elements, grouped based on the position in the original arrays and using function as the last value to specify how grouped values should be combined.