rco8786 4273 days ago. link 1 point ▲ ▼> When you need to copy an array use Array#slice. jsPerf The jsPerf for that showed the native loop being faster than slice.
rco8786 4375 days ago. link 1 point ▲ ▼Cool. One question, why did you opt for add/update instead of an all inclusive set?
rco8786 4442 days ago. link 1 point ▲ ▼Interesting. But I'm a little confused about your usage example. You have chain.val = val but as far as I can tell that will just resolve to undefined?
rco8786 4463 days ago. link 1 point ▲ ▼I'm building something similar aimed at mocking API responses for client-side testing. https://github.com/rco8786/apimok