Tiny utility to turn a list into an object
Example:
var materialize = ; var props = name: 'foo' value: 23 name: 'bar' value: 42 ; console;
Output:
foo: 32 bar: 42
By default materialize()
looks for a name
and a value
property. You may
specify different names like this:
var props = property: 'foo' val: 23 property: 'bar' val: 42 ; var obj = ;
License
MIT