mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 05:14:44 +00:00
.
This commit is contained in:
parent
beb1329f9f
commit
2b95e76931
7736 changed files with 1874747 additions and 51184 deletions
34
node_modules/lodash/wrapperChain.js
generated
vendored
Normal file
34
node_modules/lodash/wrapperChain.js
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
var chain = require('./chain');
|
||||
|
||||
/**
|
||||
* Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
|
||||
*
|
||||
* @name chain
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Seq
|
||||
* @returns {Object} Returns the new `lodash` wrapper instance.
|
||||
* @example
|
||||
*
|
||||
* var users = [
|
||||
* { 'user': 'barney', 'age': 36 },
|
||||
* { 'user': 'fred', 'age': 40 }
|
||||
* ];
|
||||
*
|
||||
* // A sequence without explicit chaining.
|
||||
* _(users).head();
|
||||
* // => { 'user': 'barney', 'age': 36 }
|
||||
*
|
||||
* // A sequence with explicit chaining.
|
||||
* _(users)
|
||||
* .chain()
|
||||
* .head()
|
||||
* .pick('user')
|
||||
* .value();
|
||||
* // => { 'user': 'barney' }
|
||||
*/
|
||||
function wrapperChain() {
|
||||
return chain(this);
|
||||
}
|
||||
|
||||
module.exports = wrapperChain;
|
Loading…
Add table
Add a link
Reference in a new issue