30秒学会 JavaScript 片段 – untildify
Converts a tilde path to an absolute path. Use String.prototype.replace() with a regular expression ...
Converts a tilde path to an absolute path. Use String.prototype.replace() with a regular expression ...
Creates a striped list with alternating background colors, which is useful for differentiating sibli...
Renders a tooltip component. Use the React.useState() hook to create the show variable and initializ...
Splits a multiline string into a list of lines. Use s.split() and ‘\n’ to match line breaks and crea...
Checks if two numbers are approximately equal to each other. Use Math.abs() to compare the absolute ...
Returns true if the given string is upper case, false otherwise. Convert the given string to upper c...
Vertically and horizontally centers a child element within its parent element using position: absolu...
Returns the last element for which the provided function returns a truthy value. Use Array.prototype...
Returns yesterday’s DateTime value. Use DateTime.Now to get the current date, then use DateTim...
Returns the length of a string in bytes. Convert a given string to a Blob Object and find its size.