2018-01-08 15:07:26 +00:00
|
|
|
import { any, pipe, equals } 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
|
|
|
|
|
|
|
|
export let undefOrTrue = val => val == undefined || val == true
|
2017-04-11 15:44:53 +00:00
|
|
|
|
2019-11-04 13:07:19 +00:00
|
|
|
export let anyNull = any(
|
|
|
|
pipe(
|
|
|
|
val,
|
|
|
|
equals(null)
|
|
|
|
)
|
|
|
|
)
|