30秒学会 C# 片段 – Reverse
Reverses a string. Use string.ToCharArray() to convert the string to an array of char, Array.Reverse...
Reverses a string. Use string.ToCharArray() to convert the string to an array of char, Array.Reverse...
Checks if the predicate (second argument) is truthy on all elements of a collection (first argument)...
Converts a number to a decimal mark formatted string. Use Number.prototype.toLocaleString() to conve...
Deep freezes an object. Use Object.keys() to get all the properties of the passed object, Array.prot...
Clones a regular expression. Use new RegExp(), RegExp.source and RegExp.flags to clone the given reg...
Checks if all elements in a list are equal. Use [1:] and [:-1] to compare all the values in the give...
Returns the first index in an IList that matches the given predicate function, match. Use Enumerable...
Performs left-to-right function composition. Use Array.prototype.reduce() with the spread operator (...
Returns true if the given number is a power of 2, false otherwise. Use the bitwise binary AND operat...
Creates an effect where text appears to be "etched" or engraved into the background. text-...