123456789101112131415161718192021222324 |
- var arraySample = require('./_arraySample'),
- baseSample = require('./_baseSample'),
- isArray = require('./isArray');
- function sample(collection) {
- var func = isArray(collection) ? arraySample : baseSample;
- return func(collection);
- }
- module.exports = sample;
|