UNPKG

naked-objects

Version:

Shorthand notation for Object.create(null) via node module hook

9 lines (6 loc) 212 B
// sweet.js syntax for naked objects // <> is equivalent to Object.create(null) // which creates new object without inheriting from // Object.prototype macro <> { rule {} => { Object.create(null) } } export <>