Skip to content

ds.copy

digital synapse edited this page Mar 3, 2015 · 4 revisions

ds.copy( src, dest, ignore, addonly )

This function provides deep object copy/merge functionality with some extra options.

###Arguments

  • src <object|array>
    the source object
  • dest <object|array>
    the destination object
  • blacklist <array> optional
    an array of property names that should not be copied
  • addonly <bool> optional
    will copy only properties/indexes that do not exist in dest

###Returns

  • dest <object|array>

Back to Home