mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Update docdown to correctly detect _.noop as a function. [ci skip]
This commit is contained in:
@@ -170,11 +170,11 @@
|
||||
<!-- div -->
|
||||
|
||||
## `Utilities`
|
||||
* [`_.noop`](#_noop)
|
||||
* [`_.escape`](#_escapestring)
|
||||
* [`_.identity`](#_identityvalue)
|
||||
* [`_.mixin`](#_mixinobject-object)
|
||||
* [`_.noConflict`](#_noconflict)
|
||||
* [`_.noop`](#_noop)
|
||||
* [`_.parseInt`](#_parseintvalue-radix)
|
||||
* [`_.random`](#_randommin0-max1-floatingfalse)
|
||||
* [`_.result`](#_resultobject-property)
|
||||
@@ -3941,25 +3941,6 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
|
||||
|
||||
## `“Utilities” Methods`
|
||||
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_noop"></a>`_.noop`
|
||||
<a href="#_noop">#</a> [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6176 "View in source") [Ⓣ][1]
|
||||
|
||||
*(unknown)*: A no-operation function.
|
||||
|
||||
#### Example
|
||||
```js
|
||||
var object = { 'name': 'fred' };
|
||||
_.noop(object) === undefined;
|
||||
// => true
|
||||
```
|
||||
|
||||
* * *
|
||||
|
||||
<!-- /div -->
|
||||
|
||||
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_escapestring"></a>`_.escape(string)`
|
||||
@@ -4060,6 +4041,25 @@ var lodash = _.noConflict();
|
||||
<!-- /div -->
|
||||
|
||||
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_noop"></a>`_.noop()`
|
||||
<a href="#_noop">#</a> [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6176 "View in source") [Ⓣ][1]
|
||||
|
||||
A no-operation function.
|
||||
|
||||
#### Example
|
||||
```js
|
||||
var object = { 'name': 'fred' };
|
||||
_.noop(object) === undefined;
|
||||
// => true
|
||||
```
|
||||
|
||||
* * *
|
||||
|
||||
<!-- /div -->
|
||||
|
||||
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_parseintvalue-radix"></a>`_.parseInt(value, [radix])`
|
||||
|
||||
3
vendor/docdown/src/DocDown/Entry.php
vendored
3
vendor/docdown/src/DocDown/Entry.php
vendored
@@ -77,7 +77,8 @@ class Entry {
|
||||
$this->isCtor() ||
|
||||
count($this->getParams()) ||
|
||||
count($this->getReturns()) ||
|
||||
preg_match('/\*[\t ]*@function\b/', $this->entry)
|
||||
preg_match('/\*[\t ]*@function\b/', $this->entry) ||
|
||||
preg_match('#\*/\s*function #', $this->entry)
|
||||
);
|
||||
}
|
||||
return $this->_isFunction;
|
||||
|
||||
Reference in New Issue
Block a user