no

naked-objects

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

Showing:

Popularity

Downloads/wk

0

GitHub Stars

5

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

bare-objects

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

NPM

Build status dependencies devdependencies

endorse

bare-objects installs a Node loader hook that transforms each loaded JavaScript file and expands <> syntax into Object.create(null)

var foo = <>;
foo.bar = 'bar'; // use just like normal objects

Because bare objects do not inherit from Object, there are no weird cases like

{} + {}     // NaN
var foo = <>;
foo + foo   // TypeError: Cannot convert object to primitive value

why?

Sweet naked objects

Small print

Author: Gleb Bahmutov © 2014

License: MIT - do anything with the code, but don't blame me if it does not work.

Support: if you find any problems with this module, email / tweet / open issue on Github

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial