here is a nice thing you can do with scope-safe constructors
¶ by Rob FrieselA little JavaScript nugget re: scope-safe constructors: The crux here is how the scope-safe trick (with instanceof) turns the constructor into a factory for itself, which allows you to pass it to map or any similar function where you might want to operate on a whole bunch of items.