UNPKG

dmn-eval-js-es5

Version:

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

26 lines (22 loc) 509 B
"use strict"; /* * * ©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 } */ var not = function not(fn) { return function (y) { var value = fn(y); if (value !== undefined) { value = !value; } return value; }; }; module.exports = { not: not };