native-factories
v1.0.1
Published
Instantiate global classes like factories
Downloads
4
Readme
Allows global functions to be instantiated as
const _ = require("native-factories");
let name = _.Name(arguments);
as opposed to
let name = new Name(arguments);
for example
const _ = require("native-factories");
let map1 = _.Map(["a",1]);
// is the same as
let map2 = new Map(["a",1]);