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

8 lines
207 B
JavaScript

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)))