When no offset applied and the length of source and target is the same we can use clone() instead of creating and populating array manually.
When no offset applied and the length of source and target is the same we can use clone() instead of creating and populating array manually.