Greed Pattern

Utilizing Rules Engine Pattern in JavaScript