import { any, pipe, equals } from 'ramda' export let val = node => node && node.nodeValue export let undefOrTrue = val => val == undefined || val == true export let anyNull = any(pipe(val, equals(null))) export let applyOrEmpty = func => v => (v ? func(v) : [])