factory
description
Create a factory function using the provided specification object. The factory
method has 2 magical powers:
the specification object can contain constant values, but also functions which will be called everytime the factory function is called (arguments will be passed as-is)
the specification object can be nested:
factory
works recursively.
examples
constant values
function values
nested specification
Last updated