Skip to content

Instantly share code, notes, and snippets.

@c7x43t
Created September 6, 2018 12:00
Show Gist options
  • Save c7x43t/b91a7d0f738f8c083e122d4f5575ae6a to your computer and use it in GitHub Desktop.
Save c7x43t/b91a7d0f738f8c083e122d4f5575ae6a to your computer and use it in GitHub Desktop.
(function(a){function c(e,f){var g=Object.create(this);if(e instanceof Array){if(f instanceof Array)for(var h in e)g[e[h]]=f[h];else for(var h in e)g[e[h]]=f;}else if(e instanceof Object)for(var j in e)g[j]=e[j];else g[e]=f;return g=Object.create(g),Object.freeze(g),g}function*d(){for(let e in this)yield this[e]}a.Subzero=function(e){var f=this;return f[Symbol.iterator]=d,Object.defineProperty(f,"set",{value:c}),Object.freeze(f),f.set(e)}})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment