fluid.freshContainer
fluid.freshContainer(tocopy)
Return an empty container as the same type as the argument (either an array or hash).
fluid.freshContainer(tocopy);
File name: Fluid.js
Parameters
tocopy |
(Array|Object) The container to copy |
Return Value
Object | A new object that is the same type as tocopy . |
See Also
Example
var target = fluid.freshContainer(source);
This example creates an object that is the same type as source
but is empty.