Fix bugs, clean up comments
This commit is contained in:
@@ -12,7 +12,7 @@ export function takeSampleFrom(sourceList, amount) {
|
||||
let randElements = [],
|
||||
max = sourceList.length;
|
||||
|
||||
if (amount <= max) {
|
||||
if (amount >= max) {
|
||||
return {sample: sourceList, remainder: {}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user