30秒学会 JavaScript 片段 – isTravisCI
Checks if the current environment is Travis CI. Checks if the current environment has the TRAVIS and...
Checks if the current environment is Travis CI. Checks if the current environment has the TRAVIS and...
Returns a boolean determining if the passed value is an object or not. Uses the Object constructor t...
Returns the average of two or more numbers. Use range to iterate over the values of nums, adding eac...
Adds an ordinal suffix to a number. Use the modulo operator (%) to find values of single and tens di...
Chunks a list into smaller lists of a specified size. Use list() and range() to create a list of the...
Converts the values of RGB components to a color code. Convert given RGB parameters to hexadecimal s...
Returns the average of a collection, after mapping each element to a value using the provided functi...
Renders a checkbox list that uses a callback function to pass its selected value/values to the paren...
title: drop tags: list,beginner Returns a list with n elements removed from the left. Use slice nota...
Creates a pub/sub (publish–subscribe) event hub with emit, on, and off methods. Use Object.create(nu...