UNPKG

@hbtgmbh/dmn-eval-js

Version:

Evaluation of DMN 1.1 decision tables, limited to S-FEEL (Simple Friendly Enough Expression Language)

23 lines (19 loc) 449 B
/* * * ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary), * Bangalore, India. All Rights Reserved. * */ /* creates a negation function for any curried function fn is expected to be a curried function with pre-populated x fn signature - function(x,y) { // function body } */ const not = fn => (y) => { let value = fn(y); if (value !== undefined) { value = !value; } return value; }; module.exports = { not };