30秒学会 JavaScript 片段 – isEmpty
Returns true if the a value is an empty object, collection, has no enumerable properties or is any t...
Returns true if the a value is an empty object, collection, has no enumerable properties or is any t...
Returns the minimum value from the provided array. Use array_filter() and min() to find the minimum ...
Returns an object with the unique values of an array as keys and their frequencies as the values. Us...
Displays an image overlay effect on hover. Use the :before and :after elements for the top and botto...
Checks if a string is an anagram of another string (case-insensitive, ignores spaces, punctuation an...
Returns true if the bottom of the page is visible, false otherwise. Use scrollY, scrollHeight and cl...
Counts the occurrences of a value in an array. Use Array.prototype.reduce() to increment a counter e...
Removes non-printable ASCII characters. Use a regular expression to remove non-printable ASCII chara...
Returns the last element in an array. Use end() to return the last item in the array.
Serialize a cookie name-value pair into a Set-Cookie header string. Use template literals and encode...