30秒学会 Golang 片段 – ToKebab
Converts a string to kebab case. Use strings.Fields() to get the words in the string, strings.Join()...
Converts a string to kebab case. Use strings.Fields() to get the words in the string, strings.Join()...
Debug the component state in the browser console by running: ng.probe($0).componentInstance $0 ̵...
Returns the value of a CSS rule for the specified element. Use Window.getComputedStyle() to get the ...
Returns the memoized (cached) function. Create an empty cache by instantiating a new Map object. Ret...
Returns the sum of two or more numbers/arrays. Use Array.prototype.reduce() to add each value to an ...
Converts a string to snake case. Break the string into words and combine them adding _ as a separato...
The Safe Navigation Operator helps with preventing null-reference exceptions in component template e...
Removes non-printable ASCII characters. Use String.replaceAll() with a regular expression to remove ...
Creates a shadow similar to box-shadow but based on the colors of the element itself. position: rela...
Generates primes up to a given number, using the Sieve of Eratosthenes. Generate an array from 2 to ...