mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Cleanup docs.
This commit is contained in:
@@ -15,10 +15,9 @@ A utility library delivering consistency, [customization](http://lodash.com/cust
|
||||
[Development](https://raw.github.com/lodash/lodash/2.0.0/dist/lodash.underscore.js) &
|
||||
[Production](https://raw.github.com/lodash/lodash/2.0.0/dist/lodash.underscore.min.js)
|
||||
|
||||
Love modules? We’ve got you covered with [lodash-amd](https://npmjs.org/package/lodash-amd), [lodash-node](https://npmjs.org/package/lodash-node), and [npm packages](https://npmjs.org/browse/author/jdalton) per method.
|
||||
|
||||
CDN copies are available on [cdnjs](http://cdnjs.com/) & [jsDelivr](http://www.jsdelivr.com/#!lodash).<br>
|
||||
For smaller file sizes, create [custom builds](http://lodash.com/custom-builds) with only the features needed.
|
||||
Love modules? We’ve got you covered with [lodash-amd](https://npmjs.org/package/lodash-amd), [lodash-node](https://npmjs.org/package/lodash-node), and [npm packages](https://npmjs.org/browse/author/jdalton) per method.
|
||||
|
||||
## Dive in
|
||||
|
||||
|
||||
@@ -107,14 +107,14 @@
|
||||
* [`_.compose`](#_composefunc)
|
||||
* [`_.createCallback`](#_createcallbackfuncidentity--thisarg--argcount)
|
||||
* [`_.curry`](#_curryfunc--arityfunclength)
|
||||
* [`_.debounce`](#_debouncefunc-wait--options--optionsleadingfalse--optionsmaxwait--optionstrailingtrue)
|
||||
* [`_.debounce`](#_debouncefunc-wait--options--optionsmaxwait)
|
||||
* [`_.defer`](#_deferfunc--arg)
|
||||
* [`_.delay`](#_delayfunc-wait--arg)
|
||||
* [`_.memoize`](#_memoizefunc--resolver)
|
||||
* [`_.once`](#_oncefunc)
|
||||
* [`_.partial`](#_partialfunc--arg)
|
||||
* [`_.partialRight`](#_partialrightfunc--arg)
|
||||
* [`_.throttle`](#_throttlefunc-wait--options--optionsleadingtrue--optionstrailingtrue)
|
||||
* [`_.throttle`](#_throttlefunc-wait--options)
|
||||
* [`_.wrap`](#_wrapvalue-wrapper)
|
||||
|
||||
<!-- /div -->
|
||||
@@ -2388,8 +2388,8 @@ curried(1, 2, 3);
|
||||
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_debouncefunc-wait--options--optionsleadingfalse--optionsmaxwait--optionstrailingtrue"></a>`_.debounce(func, wait, [options], [options.leading=false], [options.maxWait], [options.trailing=true])`
|
||||
<a href="#_debouncefunc-wait--options--optionsleadingfalse--optionsmaxwait--optionstrailingtrue">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5433 "View in source") [Ⓣ][1]
|
||||
### <a id="_debouncefunc-wait--options--optionsmaxwait"></a>`_.debounce(func, wait, [options], [options.maxWait])`
|
||||
<a href="#_debouncefunc-wait--options--optionsmaxwait">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5433 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
|
||||
|
||||
@@ -2614,8 +2614,8 @@ options.imports
|
||||
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_throttlefunc-wait--options--optionsleadingtrue--optionstrailingtrue"></a>`_.throttle(func, wait, [options], [options.leading=true], [options.trailing=true])`
|
||||
<a href="#_throttlefunc-wait--options--optionsleadingtrue--optionstrailingtrue">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5747 "View in source") [Ⓣ][1]
|
||||
### <a id="_throttlefunc-wait--options"></a>`_.throttle(func, wait, [options])`
|
||||
<a href="#_throttlefunc-wait--options">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5747 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
|
||||
|
||||
|
||||
14
vendor/benchmark.js/benchmark.js
vendored
14
vendor/benchmark.js/benchmark.js
vendored
@@ -553,20 +553,6 @@
|
||||
(/^[\s(]*function[^(]*\(([^\s,)]+)/.exec(fn) || 0)[1]) || '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the geometric mean (log-average) of a sample.
|
||||
* See http://en.wikipedia.org/wiki/Geometric_mean#Relationship_with_arithmetic_mean_of_logarithms.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} sample The sample.
|
||||
* @returns {number} The geometric mean.
|
||||
*/
|
||||
function getGeometricMean(sample) {
|
||||
return pow(Math.E, _.reduce(sample, function(sum, x) {
|
||||
return sum + log(x);
|
||||
}) / sample.length) || 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the arithmetic mean of a sample.
|
||||
*
|
||||
|
||||
5
vendor/docdown/src/DocDown/Entry.php
vendored
5
vendor/docdown/src/DocDown/Entry.php
vendored
@@ -142,7 +142,10 @@ class Entry {
|
||||
$params = $this->getParams();
|
||||
|
||||
foreach ($params as $param) {
|
||||
$result[] = $param[1];
|
||||
// skip params that are properties of other params (e.g. `options.leading`)
|
||||
if (!preg_match('/\w+\.[\w.]+\s*=/', $param[1])) {
|
||||
$result[] = $param[1];
|
||||
}
|
||||
}
|
||||
// format
|
||||
$result = $name .'('. implode(array_slice($result, 1), ', ') .')';
|
||||
|
||||
Reference in New Issue
Block a user