mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Cleanup docs.
This commit is contained in:
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