30秒学会 JavaScript 片段 – rearg
Creates a function that invokes the provided function with its arguments arranged according to the s...
Creates a function that invokes the provided function with its arguments arranged according to the s...
Curries a function. Use recursion. If the number of provided arguments (args) is sufficient, call th...
Converts a string to title case. Use String.replaceAllMapped() to break the string into words and ca...
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...
Sometimes you need to get access to global document. To simplify unit-testing, Angular provides it t...
Splits a multiline string into a list of lines. Use s.split() and ‘\n’ to match line breaks and crea...
A hook that handles the event of clicking outside of the wrapped component. Create a custom hook tha...
title: for_each tags: list,beginner Executes the provided function once for each list element. Use a...
Checks if two numbers are approximately equal to each other. Use Math.abs() to compare the absolute ...