Object.copyProperties(toObj, PropertyStr, exclude?)

When you need to copy only certain properties of one object to another object, this code will be useful.
I’ve also given an example on how to use it. take a look at it here

Leave a Reply