mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
# add dist
This commit is contained in:
26
ng2-components/ng2-alfresco-documentslist/dist/node_modules/lodash/nthArg.js
generated
vendored
Normal file
26
ng2-components/ng2-alfresco-documentslist/dist/node_modules/lodash/nthArg.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
var toInteger = require('./toInteger');
|
||||
|
||||
/**
|
||||
* Creates a function that returns its nth argument.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Util
|
||||
* @param {number} [n=0] The index of the argument to return.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
* var func = _.nthArg(1);
|
||||
*
|
||||
* func('a', 'b', 'c');
|
||||
* // => 'b'
|
||||
*/
|
||||
function nthArg(n) {
|
||||
n = toInteger(n);
|
||||
return function() {
|
||||
return arguments[n];
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = nthArg;
|
Reference in New Issue
Block a user