rco8786 4057 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 4159 days ago. link 1 point ▲ ▼Cool. One question, why did you opt for add/update instead of an all inclusive set?
rco8786 4226 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 4247 days ago. link 1 point ▲ ▼I'm building something similar aimed at mocking API responses for client-side testing. https://github.com/rco8786/apimok