anime
anime copied to clipboard
refactor: removed the cloneObject function and replaced it with Objec…
What solves this PR?
Bonjour, this is my first PR in this repository. The PR removes the cloneObject from the helper.js file, because it can be done in a more simple and native way in JS.
const clone = Object.assign({},object);
will return a cloned object.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#cloning_an_object