goofballLogic / ld-query

Querying JSON-LD
MIT License
20 stars 6 forks source link

Constructor implementation #8

Closed gareth-robinson closed 7 years ago

gareth-robinson commented 7 years ago

The README.md mentions a constructor pattern

var context = LD( { ... etc. } );
var doc = context( data );

that is not actually implemented. This pull supplies the missing constructor pattern.

goofballLogic commented 7 years ago

Thanks!