30秒学会 JavaScript 片段 – checkProp
Given a predicate function and a prop string, this curried function will then take an object to insp...
Given a predicate function and a prop string, this curried function will then take an object to insp...
A hover effect where the gradient follows the mouse cursor. –x and –y are used to track the positi...
Returns true if the given number is odd, false otherwise. Checks whether a number is odd or even usi...
Checks a flat list for duplicate values, returning true if duplicate values exists and false if valu...
Return a new function that composes multiple functions into a single callable. Use array_reduce() to...
Returns true if the browser tab of the page is focused, false otherwise. Use the Document.hidden pro...
Returns the symmetric difference between two lists, after applying the provided function to each lis...
You can create own helper component and use it instead of *ngIf. @Component({ selector: ‘loader’, te...
Measures the time taken by a function to execute. Use console.time() and console.timeEnd() to measur...
Encode a set of form elements as a query string. Use the FormData constructor to convert the HTML fo...