30秒学会 JavaScript 片段 – createEventHub
Creates a pub/sub (publish–subscribe) event hub with emit, on, and off methods. Use Object.create(nu...
Creates a pub/sub (publish–subscribe) event hub with emit, on, and off methods. Use Object.create(nu...
Returns the lowest index at which value should be inserted into array in order to maintain its sort ...
title: n_times_string tags: string,beginner Prints out the same string a defined number of times. Re...
Fancy hover and focus effect at navigation items using transform CSS property. Use the :before pseud...
Returns true if all the elements in values are included in arr, false otherwise. Use Array.prototype...
Returns the last key that satisfies the provided testing function. Otherwise undefined is returned. ...
Shows all the elements specified. Use the spread operator (…) and Array.prototype.forEach() to cle...
Tests a value, x, against a predicate function. If true, return fn(x). Else, return x. Return a func...
Makes a PUT request to the passed URL. Use XMLHttpRequest web api to make a put request to the given...
Checks if the provided value is an object created by the Object constructor. Check if the provided v...