forked from noamtcohen/OHH
-
Notifications
You must be signed in to change notification settings - Fork 1
jt-cohen/OHH
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Ohh... multiway object binder. Bind an object P2P, P2S and S2S. ``` var OHH = (o1)=>{ var out = []; const key = (o)=>{ for(var k in o){ out.push(k); key(o[k]); } } OHH.out = ()=>{ out = []; key(OHH) return out; } return (OHH[o1]=(o2)=>{ return (OHH[o1][o2]=(o3)=>{ return (OHH[o1][o2][o3]=(o4)=>{ return OHH[o1][o2][o3][o4] = {}; }) }) }); }; OHH("x")("Y")({z:true})(4) OHH("D")("_") console.log(OHH.out()) ```
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 87.6%
- HTML 12.4%