pvorb / clone

deeply clone arbitrary objects in javascript
https://www.npmjs.com/package/clone
MIT License
781 stars 129 forks source link

Support for ES6 modules #74

Open jdthorpe opened 7 years ago

jdthorpe commented 7 years ago

Just a thought, support for ES6 modules could be added by adding one line to the last if block of clone.js like so:

if (typeof module === 'object' && module.exports) {
  module.exports = clone;
  module.exports.default = clone;
}