Remove isIterateeCall.

This commit is contained in:
John-David Dalton
2017-03-03 23:32:24 -08:00
parent ba52c744ae
commit 17f7069d07
11 changed files with 11 additions and 93 deletions

View File

@@ -1,4 +1,3 @@
import isIterateeCall from './.internal/isIterateeCall.js'
import toFinite from './toFinite.js'
/** Built-in method references without a dependency on `root`. */
@@ -38,9 +37,6 @@ const nativeRandom = Math.random
* // => a floating-point number between 1.2 and 5.2
*/
function random(lower, upper, floating) {
if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
upper = floating = undefined
}
if (floating === undefined) {
if (typeof upper == 'boolean') {
floating = upper