30秒学会 Golang 片段 – ContainsWhiteSpace
Returns a string with whitespaces compacted. Use Regexp.MatchString() with a regular expression to c...
Returns a string with whitespaces compacted. Use Regexp.MatchString() with a regular expression to c...
Renders a <select> element that uses a callback function to pass its value to the parent compo...
Converts a string to snake case. Use strings.Fields() to get the words in the string, strings.Join()...
Returns every element that exists in any of the two lists once. Create a set with all values of a an...
Checks if the given number falls within the given range. Use arithmetic comparison to check if the g...
Creates a directory, if it does not exist. Use fs.existsSync() to check if the directory exists, fs....
Converts an angle from degrees to radians. Use math.pi and the degrees to radians formula to convert...
Returns true if the given string is a palindrome, false otherwise. Check if the value of strrev($str...
Creates an object from the given key-value pairs. Use Array.prototype.reduce() to create and combine...
Returns True if all the values in a list are unique, False otherwise. Use set() on the given list to...