30秒学会 Python 片段 – Integer to roman numeral
Converts an integer to its roman numeral representation. Accepts value between 1 and 3999 (both incl...
Converts an integer to its roman numeral representation. Accepts value between 1 and 3999 (both incl...
String.prototype.replaceAll() Modern JavaScript engines have a built-in method called String.prototy...
Joins all given URL segments together, then normalizes the resulting URL. Use Array.prototype.join()...
Pads a string on both sides with the specified character, if it’s shorter than the specified l...
Oftentimes, we need to create a URL in JavaScript, to request a resource or redirect the user. A see...
Editing the query string of a URL in JavaScript is pretty common. While the naive approach of direct...
Converts an rgb() color string to an object with the values of each color. Use String.prototype.matc...
Converts a 2D array to a comma-separated values (CSV) string. Use Array.prototype.map() and Array.pr...
Gets the size of an array, object or string. Get type of val (array, object or string). Use Array.pr...
Converting strings to and from Base64 is a simple operation that might come in handy every once in a...