Correct name of var and add missing import. (#2999)

This commit is contained in:
Michał Lipiński
2017-02-13 17:01:40 +01:00
committed by John-David Dalton
parent 8429c1db36
commit a822979881

View File

@@ -1,4 +1,5 @@
import isIterateeCall from './.internal/isIterateeCall.js'
import copyArray from './.internal/copyArray.js'
import toInteger from './toInteger.js'
/**
@@ -20,7 +21,7 @@ import toInteger from './toInteger.js'
* // => [2, 3, 1]
*/
function sampleSize(array, n, guard) {
if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
if ((guard ? isIterateeCall(array, n, guard) : n === undefined)) {
n = 1
} else {
n = toInteger(n)