Bake date into snippets

This commit is contained in:
Isabelle Viktoria Maciohsek
2021-06-13 13:55:00 +03:00
parent c1cea86809
commit 27c168ce55
525 changed files with 1050 additions and 0 deletions

View File

@ -1,6 +1,8 @@
---
title: CSVToArray
tags: string,array,intermediate
firstSeen: 2018-06-27T20:57:54+03:00
lastUpdated: 2020-11-03T21:46:13+02:00
---
Converts a comma-separated values (CSV) string to a 2D array.

View File

@ -1,6 +1,8 @@
---
title: CSVToJSON
tags: string,object,advanced
firstSeen: 2018-06-27T21:14:24+03:00
lastUpdated: 2020-11-03T22:11:18+02:00
---
Converts a comma-separated values (CSV) string to a 2D array of objects.

View File

@ -1,6 +1,8 @@
---
title: HSBToRGB
tags: math,intermediate
firstSeen: 2020-09-18T14:25:07+03:00
lastUpdated: 2020-09-18T14:25:07+03:00
---
Converts a HSB color tuple to RGB format.

View File

@ -1,6 +1,8 @@
---
title: HSLToRGB
tags: math,intermediate
firstSeen: 2020-10-01T23:15:49+03:00
lastUpdated: 2020-10-04T11:24:27+03:00
---
Converts a HSL color tuple to RGB format.

View File

@ -1,6 +1,8 @@
---
title: JSONToFile
tags: node,intermediate
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Writes a JSON object to a file.

View File

@ -1,6 +1,8 @@
---
title: JSONtoCSV
tags: array,string,object,advanced
firstSeen: 2018-07-06T20:25:46+03:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Converts an array of objects to a comma-separated values (CSV) string that contains only the `columns` specified.

View File

@ -1,6 +1,8 @@
---
title: RGBToHSB
tags: math,intermediate
firstSeen: 2020-09-18T14:25:07+03:00
lastUpdated: 2020-10-22T20:24:30+03:00
---
Converts a RGB color tuple to HSB format.

View File

@ -1,6 +1,8 @@
---
title: RGBToHSL
tags: math,intermediate
firstSeen: 2020-10-01T23:16:30+03:00
lastUpdated: 2020-10-04T11:25:12+03:00
---
Converts a RGB color tuple to HSL format.

View File

@ -1,6 +1,8 @@
---
title: RGBToHex
tags: string,math,intermediate
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-11-03T22:11:18+02:00
---
Converts the values of RGB components to a hexadecimal color code.

View File

@ -1,6 +1,8 @@
---
title: URLJoin
tags: string,regexp,advanced
firstSeen: 2018-01-16T15:53:03+02:00
lastUpdated: 2020-10-22T20:24:44+03:00
---
Joins all given URL segments together, then normalizes the resulting URL.

View File

@ -1,6 +1,8 @@
---
title: UUIDGeneratorBrowser
tags: browser,random,intermediate
firstSeen: 2017-12-29T09:47:10+02:00
lastUpdated: 2020-10-22T20:24:44+03:00
---
Generates a UUID in a browser.

View File

@ -1,6 +1,8 @@
---
title: UUIDGeneratorNode
tags: node,random,intermediate
firstSeen: 2017-12-29T09:47:10+02:00
lastUpdated: 2020-10-22T20:24:44+03:00
---
Generates a UUID in Node.JS.

View File

@ -1,6 +1,8 @@
---
title: accumulate
tags: math,array,intermediate
firstSeen: 2020-05-04T12:20:46+03:00
lastUpdated: 2020-11-03T21:46:13+02:00
---
Creates an array of partial sums.

View File

@ -1,6 +1,8 @@
---
title: addClass
tags: browser,beginner
firstSeen: 2020-12-30T19:21:15+02:00
lastUpdated: 2020-12-30T19:21:15+02:00
---
Adds a class to an HTML element.

View File

@ -1,6 +1,8 @@
---
title: addDaysToDate
tags: date,intermediate
firstSeen: 2020-10-12T03:03:18+03:00
lastUpdated: 2020-11-28T19:18:29+02:00
---
Calculates the date of `n` days from the given date, returning its string representation.

View File

@ -1,6 +1,8 @@
---
title: addEventListenerAll
tags: browser,event,intermediate
firstSeen: 2021-04-22T08:53:29+03:00
lastUpdated: 2021-04-22T08:53:29+03:00
---
Attaches an event listener to all the provided targets.

View File

@ -1,6 +1,8 @@
---
title: addMinutesToDate
tags: date,intermediate
firstSeen: 2020-11-28T19:27:46+02:00
lastUpdated: 2020-11-28T19:27:46+02:00
---
Calculates the date of `n` minutes from the given date, returning its string representation.

View File

@ -1,6 +1,8 @@
---
title: addMultipleListeners
tags: browser,event,intermediate
firstSeen: 2020-10-08T00:40:30+03:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Adds multiple event listeners with the same handler to an element.

View File

@ -1,6 +1,8 @@
---
title: addStyles
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.

View File

@ -1,6 +1,8 @@
---
title: addWeekDays
tags: date,intermediate
firstSeen: 2020-10-11T16:51:39+03:00
lastUpdated: 2021-01-08T00:23:44+02:00
---
Calculates the date after adding the given number of business days.

View File

@ -1,6 +1,8 @@
---
title: all
tags: array,beginner
firstSeen: 2018-02-14T11:46:15+02:00
lastUpdated: 2020-10-18T20:24:28+03:00
---
Checks if the provided predicate function returns `true` for all elements in a collection.

View File

@ -1,6 +1,8 @@
---
title: allEqual
tags: array,beginner
firstSeen: 2018-08-03T00:03:08+03:00
lastUpdated: 2020-10-18T20:24:28+03:00
---
Checks if all elements in an array are equal.

View File

@ -1,6 +1,8 @@
---
title: allEqualBy
tags: array,intermediate
firstSeen: 2020-10-19T22:14:49+03:00
lastUpdated: 2020-10-19T22:14:49+03:00
---
Checks if all elements in an array are equal, based on the provided mapping function.

View File

@ -1,6 +1,8 @@
---
title: allUnique
tags: array,beginner
firstSeen: 2020-10-19T19:47:26+03:00
lastUpdated: 2021-01-08T00:23:44+02:00
---
Checks if all elements in an array are unique.

View File

@ -1,6 +1,8 @@
---
title: allUniqueBy
tags: array,intermediate
firstSeen: 2020-10-19T22:15:05+03:00
lastUpdated: 2021-01-08T00:23:44+02:00
---
Checks if all elements in an array are unique, based on the provided mapping function.

View File

@ -2,6 +2,8 @@
title: and
tags: math,logic,beginner
unlisted: true
firstSeen: 2020-05-13T11:35:31+03:00
lastUpdated: 2021-01-04T13:04:15+02:00
---
Checks if both arguments are `true`.

View File

@ -1,6 +1,8 @@
---
title: any
tags: array,beginner
firstSeen: 2018-02-14T11:46:15+02:00
lastUpdated: 2020-10-18T20:24:28+03:00
---
Checks if the provided predicate function returns `true` for at least one element in a collection.

View File

@ -1,6 +1,8 @@
---
title: aperture
tags: array,intermediate
firstSeen: 2020-05-13T13:25:33+03:00
lastUpdated: 2020-10-18T20:24:28+03:00
---
Creates an array of `n`-tuples of consecutive elements.

View File

@ -1,6 +1,8 @@
---
title: approximatelyEqual
tags: math,beginner
firstSeen: 2018-02-14T12:47:13+02:00
lastUpdated: 2020-11-01T20:50:57+02:00
---
Checks if two numbers are approximately equal to each other.

View File

@ -1,6 +1,8 @@
---
title: arithmeticProgression
tags: math,algorithm,beginner
firstSeen: 2020-10-04T11:37:07+03:00
lastUpdated: 2020-12-28T13:49:24+02:00
---
Creates an array of numbers in the arithmetic progression, starting with the given positive integer and up to the specified limit.

View File

@ -1,6 +1,8 @@
---
title: arrayToCSV
tags: array,string,intermediate
firstSeen: 2018-06-27T20:26:43+03:00
lastUpdated: 2020-11-03T21:55:08+02:00
---
Converts a 2D array to a comma-separated values (CSV) string.

View File

@ -1,6 +1,8 @@
---
title: arrayToHTMLList
tags: browser,array,intermediate
firstSeen: 2020-10-08T00:02:45+03:00
lastUpdated: 2020-10-20T11:46:23+03:00
---
Converts the given array elements into `<li>` tags and appends them to the list of the given id.

View File

@ -1,6 +1,8 @@
---
title: ary
tags: function,advanced
firstSeen: 2018-01-24T13:59:54+02:00
lastUpdated: 2020-10-18T20:24:28+03:00
---
Creates a function that accepts up to `n` arguments, ignoring any additional arguments.

View File

@ -1,6 +1,8 @@
---
title: atob
tags: node,string,beginner
firstSeen: 2018-01-17T21:43:21+02:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Decodes a string of data which has been encoded using base-64 encoding.

View File

@ -1,6 +1,8 @@
---
title: attempt
tags: function,intermediate
firstSeen: 2018-01-28T14:44:40+02:00
lastUpdated: 2020-10-18T20:24:28+03:00
---
Attempts to invoke a function with the provided arguments, returning either the result or the caught error object.

View File

@ -1,6 +1,8 @@
---
title: average
tags: math,array,beginner
firstSeen: 2017-12-29T13:29:49+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Calculates the average of two or more numbers.

View File

@ -1,6 +1,8 @@
---
title: averageBy
tags: math,array,intermediate
firstSeen: 2018-01-11T12:25:54+02:00
lastUpdated: 2020-10-21T21:17:45+03:00
---
Calculates the average of an array, after mapping each element to a value using the provided function.

View File

@ -1,6 +1,8 @@
---
title: bifurcate
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.

View File

@ -1,6 +1,8 @@
---
title: bifurcateBy
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.

View File

@ -1,6 +1,8 @@
---
title: binary
tags: function,intermediate
firstSeen: 2020-05-13T13:36:36+03:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Creates a function that accepts up to two arguments, ignoring any additional arguments.

View File

@ -1,6 +1,8 @@
---
title: binarySearch
tags: algorithm,array,beginner
firstSeen: 2020-12-28T12:35:44+02:00
lastUpdated: 2020-12-29T13:06:47+02:00
---
Finds the index of a given element in a sorted array using the binary search algorithm.

View File

@ -1,6 +1,8 @@
---
title: bind
tags: function,object,advanced
firstSeen: 2018-01-24T14:14:49+02:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Creates a function that invokes `fn` with a given context, optionally prepending any additional supplied parameters to the arguments.

View File

@ -1,6 +1,8 @@
---
title: bindAll
tags: object,function,intermediate
firstSeen: 2018-01-26T14:14:53+02:00
lastUpdated: 2020-11-03T22:11:18+02:00
---
Binds methods of an object to the object itself, overwriting the existing method.

View File

@ -1,6 +1,8 @@
---
title: bindKey
tags: function,object,advanced
firstSeen: 2018-01-24T14:22:43+02:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Creates a function that invokes the method at a given key of an object, optionally prepending any additional supplied parameters to the arguments.

View File

@ -1,6 +1,8 @@
---
title: binomialCoefficient
tags: math,algorithm,beginner
firstSeen: 2018-02-14T12:34:02+02:00
lastUpdated: 2020-12-28T13:49:24+02:00
---
Calculates the number of ways to choose `k` items from `n` items without repetition and without order.

View File

@ -2,6 +2,8 @@
title: both
tags: function,logic,beginner
unlisted: true
firstSeen: 2020-05-13T11:35:36+03:00
lastUpdated: 2021-01-04T13:04:15+02:00
---
Checks if both of the given functions return `true` for a given set of arguments.

View File

@ -1,6 +1,8 @@
---
title: bottomVisible
tags: browser,beginner
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Checks if the bottom of the page is visible.

View File

@ -1,6 +1,8 @@
---
title: btoa
tags: node,string,beginner
firstSeen: 2018-01-17T21:43:21+02:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Creates a base-64 encoded ASCII string from a String object in which each character in the string is treated as a byte of binary data.

View File

@ -1,6 +1,8 @@
---
title: bubbleSort
tags: algorithm,array,beginner
firstSeen: 2020-12-27T21:20:31+02:00
lastUpdated: 2020-12-29T12:18:58+02:00
---
Sorts an array of numbers, using the bubble sort algorithm.

View File

@ -1,6 +1,8 @@
---
title: bucketSort
tags: algorithm,array,intermediate
firstSeen: 2020-12-28T22:11:56+02:00
lastUpdated: 2020-12-29T12:22:44+02:00
---
Sorts an array of numbers, using the bucket sort algorithm.

View File

@ -1,6 +1,8 @@
---
title: byteSize
tags: string,beginner
firstSeen: 2017-12-29T14:30:34+02:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Returns the length of a string in bytes.

View File

@ -1,6 +1,8 @@
---
title: caesarCipher
tags: algorithm,string,beginner
firstSeen: 2020-12-28T20:10:18+02:00
lastUpdated: 2020-12-29T12:29:21+02:00
---
Encrypts or decrypts a given string using the Caesar cipher.

View File

@ -1,6 +1,8 @@
---
title: call
tags: function,advanced
firstSeen: 2017-12-22T21:54:30+02:00
lastUpdated: 2021-06-13T13:50:25+03:00
---
Given a key and a set of arguments, call them when given a context.

View File

@ -1,6 +1,8 @@
---
title: capitalize
tags: string,intermediate
firstSeen: 2017-12-17T16:41:31+02:00
lastUpdated: 2020-11-01T20:50:57+02:00
---
Capitalizes the first letter of a string.

View File

@ -1,6 +1,8 @@
---
title: capitalizeEveryWord
tags: string,regexp,intermediate
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Capitalizes the first letter of every word in a string.

View File

@ -1,6 +1,8 @@
---
title: cartesianProduct
tags: math,array,beginner
firstSeen: 2020-12-28T20:23:47+02:00
lastUpdated: 2020-12-29T12:31:43+02:00
---
Calculates the cartesian product of two arrays.

View File

@ -1,6 +1,8 @@
---
title: castArray
tags: type,array,beginner
firstSeen: 2018-01-23T20:54:12+02:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Casts the provided value as an array if it's not one.

View File

@ -2,6 +2,8 @@
title: celsiusToFahrenheit
tags: math,beginner
unlisted: true
firstSeen: 2020-04-16T11:00:06+03:00
lastUpdated: 2021-01-04T13:04:15+02:00
---
Converts Celsius to Fahrenheit.

View File

@ -1,6 +1,8 @@
---
title: chainAsync
tags: function,intermediate
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Chains asynchronous functions.

View File

@ -1,6 +1,8 @@
---
title: changeLightness
tags: string,browser,regexp,intermediate
firstSeen: 2020-10-30T17:38:31+02:00
lastUpdated: 2020-10-31T16:37:54+02:00
---
Changes the lightness value of an `hsl()` color string.

View File

@ -1,6 +1,8 @@
---
title: checkProp
tags: function,object,intermediate
firstSeen: 2019-03-17T03:53:00+02:00
lastUpdated: 2020-11-01T20:50:57+02:00
---
Creates a function that will invoke a predicate function for the specified property on a given object.

View File

@ -1,6 +1,8 @@
---
title: chunk
tags: array,intermediate
firstSeen: 2017-12-17T16:41:31+02:00
lastUpdated: 2020-11-03T21:35:12+02:00
---
Chunks an array into smaller arrays of a specified size.

View File

@ -1,6 +1,8 @@
---
title: chunkIntoN
tags: array,intermediate
firstSeen: 2020-05-04T13:00:46+03:00
lastUpdated: 2020-11-03T21:46:13+02:00
---
Chunks an array into `n` smaller arrays.

View File

@ -1,6 +1,8 @@
---
title: chunkify
tags: function,generator,array,advanced
firstSeen: 2021-03-16T22:50:40+02:00
lastUpdated: 2021-03-16T22:50:40+02:00
---
Chunks an iterable into smaller arrays of a specified size.

View File

@ -1,6 +1,8 @@
---
title: clampNumber
tags: math,beginner
firstSeen: 2017-12-20T19:19:18+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Clamps `num` within the inclusive range specified by the boundary values `a` and `b`.

View File

@ -1,6 +1,8 @@
---
title: cloneRegExp
tags: type,intermediate
firstSeen: 2018-01-01T19:45:47+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Clones a regular expression.

View File

@ -1,6 +1,8 @@
---
title: coalesce
tags: type,beginner
firstSeen: 2017-12-17T10:08:55+02:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Returns the first defined, non-null argument.

View File

@ -1,6 +1,8 @@
---
title: coalesceFactory
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.

View File

@ -1,6 +1,8 @@
---
title: collectInto
tags: function,array,intermediate
firstSeen: 2017-12-22T05:08:36+02:00
lastUpdated: 2021-06-13T13:50:25+03:00
---
Changes a function that accepts an array into a variadic function.

View File

@ -1,6 +1,8 @@
---
title: colorize
tags: node,string,intermediate
firstSeen: 2018-01-13T13:36:59+02:00
lastUpdated: 2020-11-03T22:11:18+02:00
---
Adds special characters to text to print in color in the console (combined with `console.log()`).

View File

@ -1,6 +1,8 @@
---
title: combine
tags: array,object,intermediate
firstSeen: 2020-10-04T00:26:51+03:00
lastUpdated: 2020-10-08T02:22:39+03:00
---
Combines two arrays of objects, using the specified key to match objects.

View File

@ -1,6 +1,8 @@
---
title: compact
tags: array,beginner
firstSeen: 2017-12-14T08:19:15+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Removes falsy values from an array.

View File

@ -1,6 +1,8 @@
---
title: compactObject
tags: object,array,recursion,advanced
firstSeen: 2020-11-27T13:57:41+02:00
lastUpdated: 2020-11-27T13:57:41+02:00
---
Deeply removes all falsy values from an object or array.

View File

@ -1,6 +1,8 @@
---
title: compactWhitespace
tags: string,regexp,beginner
firstSeen: 2018-12-12T19:11:33+02:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Compacts whitespaces in a string.

View File

@ -1,6 +1,8 @@
---
title: complement
tags: function,logic,beginner
firstSeen: 2020-05-13T11:28:33+03:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Returns a function that is the logical complement of the given function, `fn`.

View File

@ -1,6 +1,8 @@
---
title: compose
tags: function,intermediate
firstSeen: 2017-12-17T16:41:31+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Performs right-to-left function composition.

View File

@ -1,6 +1,8 @@
---
title: composeRight
tags: function,intermediate
firstSeen: 2018-01-23T22:12:56+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Performs left-to-right function composition.

View File

@ -1,6 +1,8 @@
---
title: containsWhitespace
tags: string,regexp,beginner
firstSeen: 2020-03-25T12:37:13+02:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Checks if the given string contains any whitespace characters.

View File

@ -1,6 +1,8 @@
---
title: converge
tags: function,intermediate
firstSeen: 2018-02-07T12:23:04+02:00
lastUpdated: 2021-01-08T00:23:44+02:00
---
Accepts a converging function and a list of branching functions and returns a function that applies each branching function to the arguments and the results of the branching functions are passed as arguments to the converging function.

View File

@ -1,6 +1,8 @@
---
title: copySign
tags: math,beginner
firstSeen: 2020-10-07T23:52:57+03:00
lastUpdated: 2020-10-07T23:52:57+03:00
---
Returns the absolute value of the first number, but the sign of the second.

View File

@ -1,6 +1,8 @@
---
title: copyToClipboard
tags: browser,string,event,advanced
firstSeen: 2017-12-31T11:40:33+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Copies a string to the clipboard.

View File

@ -1,6 +1,8 @@
---
title: countBy
tags: array,object,intermediate
firstSeen: 2018-01-11T13:45:53+02:00
lastUpdated: 2020-11-03T22:11:18+02:00
---
Groups the elements of an array based on the given function and returns the count of elements in each group.

View File

@ -1,6 +1,8 @@
---
title: countOccurrences
tags: array,intermediate
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Counts the occurrences of a value in an array.

View File

@ -1,6 +1,8 @@
---
title: countSubstrings
tags: string,algorithm,beginner
firstSeen: 2020-12-31T13:58:51+02:00
lastUpdated: 2021-01-08T00:23:44+02:00
---
Counts the occurrences of a substring in a given string.

View File

@ -1,6 +1,8 @@
---
title: countWeekDaysBetween
tags: date,intermediate
firstSeen: 2020-10-11T11:44:44+03:00
lastUpdated: 2020-10-20T11:21:07+03:00
---
Counts the weekdays between two dates.

View File

@ -1,6 +1,8 @@
---
title: counter
tags: browser,advanced
firstSeen: 2018-05-06T17:55:46+03:00
lastUpdated: 2020-11-01T20:50:57+02:00
---
Creates a counter with the specified range, step and duration for the specified selector.

View File

@ -1,6 +1,8 @@
---
title: createDirIfNotExists
tags: node,beginner
firstSeen: 2018-12-12T19:25:16+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Creates a directory, if it does not exist.

View File

@ -1,6 +1,8 @@
---
title: createElement
tags: browser,beginner
firstSeen: 2018-01-05T18:21:44+02:00
lastUpdated: 2020-10-19T18:51:03+03:00
---
Creates an element from a string (without appending it to the document).

View File

@ -1,6 +1,8 @@
---
title: createEventHub
tags: browser,event,advanced
firstSeen: 2018-01-05T15:07:26+02:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Creates a pub/sub ([publishsubscribe](https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern)) event hub with `emit`, `on`, and `off` methods.

View File

@ -1,6 +1,8 @@
---
title: currentURL
tags: browser,beginner
firstSeen: 2017-12-18T11:05:03+02:00
lastUpdated: 2020-10-20T11:46:23+03:00
---
Returns the current URL.

View File

@ -1,6 +1,8 @@
---
title: curry
tags: function,recursion,advanced
firstSeen: 2017-12-10T15:21:35+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Curries a function.

View File

@ -1,6 +1,8 @@
---
title: cycleGenerator
tags: function,generator,advanced
firstSeen: 2020-10-11T17:05:38+03:00
lastUpdated: 2020-10-11T17:05:38+03:00
---
Creates a generator, looping over the given array indefinitely.

View File

@ -1,6 +1,8 @@
---
title: dayName
tags: date,beginner
firstSeen: 2020-10-04T00:31:08+03:00
lastUpdated: 2020-11-01T20:50:57+02:00
---
Gets the name of the weekday from a `Date` object.

View File

@ -1,6 +1,8 @@
---
title: dayOfYear
tags: date,beginner
firstSeen: 2018-09-29T13:22:20+03:00
lastUpdated: 2020-10-19T18:51:03+03:00
---
Gets the day of the year (number in the range 1-366) from a `Date` object.

View File

@ -1,6 +1,8 @@
---
title: daysAgo
tags: date,beginner
firstSeen: 2020-10-06T05:35:23+03:00
lastUpdated: 2020-10-20T11:21:07+03:00
---
Calculates the date of `n` days ago from today as a string representation.

View File

@ -1,6 +1,8 @@
---
title: daysFromNow
tags: date,beginner
firstSeen: 2020-10-09T02:49:17+03:00
lastUpdated: 2020-10-20T11:21:07+03:00
---
Calculates the date of `n` days from today as a string representation.

View File

@ -1,6 +1,8 @@
---
title: debounce
tags: function,intermediate
firstSeen: 2018-01-28T15:18:26+02:00
lastUpdated: 2020-10-19T18:51:03+03:00
---
Creates a debounced function that delays invoking the provided function until at least `ms` milliseconds have elapsed since the last time it was invoked.

View File

@ -1,6 +1,8 @@
---
title: debouncePromise
tags: function,promise,advanced
firstSeen: 2020-10-10T21:09:04+03:00
lastUpdated: 2020-10-19T18:51:03+03:00
---
Creates a debounced function that returns a promise, but delays invoking the provided function until at least `ms` milliseconds have elapsed since the last time it was invoked.

View File

@ -1,6 +1,8 @@
---
title: decapitalize
tags: string,intermediate
firstSeen: 2018-01-11T11:58:40+02:00
lastUpdated: 2020-11-01T20:50:57+02:00
---
Decapitalizes the first letter of a string.

View File

@ -1,6 +1,8 @@
---
title: deepClone
tags: object,recursion,advanced
firstSeen: 2018-01-23T20:48:46+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Creates a deep clone of an object.

Some files were not shown because too many files have changed in this diff Show More