lib/structures/ternary.js
import * as R from 'ramda'
import {
getFn
} from '../utilities/helper.js'
import {
curryMethod
} from 'curry-method'
const ternary = R.curry(
(fnPath, arg1, arg2, arg3, el) => {
const fn = getFn(fnPath, el)
return R.defaultTo(el)(fn(arg1, arg2, arg3))
}
)
export {
ternary
}