Implement pipeline(source, transforms) where:
source is an array of values.'x => x * 2' or 'x => x > 4 ? x : undefined'. Compile each via
new Function('return (' + expr + ');')().
For each value, run all transforms in order. If a transform returnsundefined, drop the value. Return the array of surviving values.
solve([1, 2, 3, 4], ['x => x * 2', 'x => x > 4 ? x : undefined']) → [6, 8].
Sample tests