30秒学会 JavaScript 片段 – redirect
Redirects to a specified URL. Use window.location.href or window.location.replace() to redirect to u...
Redirects to a specified URL. Use window.location.href or window.location.replace() to redirect to u...
Accepts a converging function and a list of branching functions and returns a function that applies ...
Creates a toggle switch with CSS only. This effect is styling only the <label> element to look...
Returns every element that exists in any of the two arrays once, using a provided comparator functio...
Checks if a string is ends with a given substring. Use strrpos() in combination with strlen to find ...
Returns true if the given number is odd, false otherwise. Checks whether a number is odd or even usi...
It’s possible to take a template as @Input for a component to customize the render @Component(...
Creates an object with the same keys as the provided object and values generated by running the prov...
Resets the box-model so that width and height are not affected by border or padding. box-sizing: bor...
Returns the angle (theta) between two vectors. Use Array.prototype.reduce(), Math.pow() and Math.sqr...