2017-04-11 15:44:53 +00:00
|
|
|
import R from 'ramda'
|
|
|
|
|
2017-10-24 13:57:46 +00:00
|
|
|
export let val = node => node && node.nodeValue
|
|
|
|
|
|
|
|
export let undefOrTrue = val => val == undefined || val == true
|
2017-04-11 15:44:53 +00:00
|
|
|
|
|
|
|
export let anyNull = R.any(R.pipe(val, R.equals(null)))
|
2017-10-24 13:57:46 +00:00
|
|
|
|
|
|
|
export let applyOrEmpty = func => v => v ? func(v) : []
|