2019-11-07 11:34:03 +00:00
|
|
|
import { any, equals, pipe } from 'ramda'
|
2017-04-11 15:44:53 +00:00
|
|
|
|
2017-10-24 13:57:46 +00:00
|
|
|
export let val = node => node && node.nodeValue
|
|
|
|
|
2019-11-07 11:34:03 +00:00
|
|
|
export let undefOrTruthy = val => val == undefined || !!val
|
2017-04-11 15:44:53 +00:00
|
|
|
|
2019-11-04 13:07:19 +00:00
|
|
|
export let anyNull = any(
|
|
|
|
pipe(
|
|
|
|
val,
|
|
|
|
equals(null)
|
|
|
|
)
|
|
|
|
)
|