Skip to content

jt-cohen/OHH

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages

  • JavaScript 87.6%
  • HTML 12.4%