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

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

      
    
Rootfs path

      
    
Size
551 (551 bytes)
MD5
611086be4b7d4b39e6fbac6bc5d396a9
SHA1
b861fdd759aa14bb6747b0e333df66b8995300b2
SHA256
c18724427d723e8ce6f8b30842f319dd888e00ce3abafa4269f2c2426d1235ee
SHA512

      
    
SHA1_git
39c356042a90fb284b846978820e518f574fa864
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
sample.js | 551 bytes |

var arraySample = require('./_arraySample'), baseSample = require('./_baseSample'), isArray = require('./isArray'); /** * Gets a random element from `collection`. * * @static * @memberOf _ * @since 2.0.0 * @category Collection * @param {Array|Object} collection The collection to sample. * @returns {*} Returns the random element. * @example * * _.sample([1, 2, 3, 4]); * // => 2 */ function sample(collection) { var func = isArray(collection) ? arraySample : baseSample; return func(collection); } module.exports = sample;
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/lodash@4.17.20 mit JavaScript