demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/nthArg.js

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/nthArg.js
Status
scanned
Type
file
Name
nthArg.js
Extension
.js
Programming language
JavaScript
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
730 (730 bytes)
MD5
21e54cd78bec081fe480b74d1f585534
SHA1
47191997e9ebf3b2b8dd667ee362e48d381217fb
SHA256
01b64f63f3aba6ba003fd2ece4af4b65ccb06a4f64f872cbb5a16385c1c813a6
SHA512

      
    
SHA1_git
09406ddf49af84cc34c4f39ad0a4ccb4b59948de
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
nthArg.js | 730 bytes |

var baseNth = require('./_baseNth'), baseRest = require('./_baseRest'), toInteger = require('./toInteger'); /** * Creates a function that gets the argument at index `n`. If `n` is negative, * the nth argument from the end is returned. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {number} [n=0] The index of the argument to return. * @returns {Function} Returns the new pass-thru function. * @example * * var func = _.nthArg(1); * func('a', 'b', 'c', 'd'); * // => 'b' * * var func = _.nthArg(-2); * func('a', 'b', 'c', 'd'); * // => 'c' */ function nthArg(n) { n = toInteger(n); return baseRest(function(args) { return baseNth(args, n); }); } module.exports = nthArg;
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/lodash@4.17.20 mit JavaScript