Implement a minimal synchronous Observable class:
Observable.of(...values) — static factory from a list of values.obs.map(fn) — returns a new Observable applying fn to each value.obs.filter(fn) — returns a new Observable keeping values where fn is truthy.obs.take(n) — returns a new Observable with at most n values.obs.subscribe({ next }) — executes the chain synchronously, calling next for each value.solve applies a declarative operator chain to a values array.
Operators: ['map', expr], ['filter', expr], ['take', n] whereexpr is an arrow function string compiled with new Function.
Sample tests