mon-entreprise/source/engine/traverse-common-functions.js

13 lines
213 B
JavaScript

import { any, equals, pipe } from 'ramda'
export let val = node => node && node.nodeValue
export let undefOrTruthy = val => val == undefined || !!val
export let anyNull = any(
pipe(
val,
equals(null)
)
)