Remove apply.

This commit is contained in:
John-David Dalton
2017-02-23 23:02:35 -08:00
parent b9c61eea60
commit 37f168d466
11 changed files with 11 additions and 45 deletions

View File

@@ -1,4 +1,3 @@
import apply from './.internal/apply.js'
import arrayMap from './.internal/arrayMap.js'
/**
@@ -42,8 +41,8 @@ function cond(pairs) {
let index = -1
while (++index < length) {
const pair = pairs[index]
if (apply(pair[0], this, args)) {
return apply(pair[1], this, args)
if (pair[0].apply(this, args)) {
return pair[1].apply(this, args)
}
}
}