text: "use strict";
  
  // module
  
  module.exports = function clone (from) {
  
  	if (from && "object" === typeof from) {
  
  		if (Object === from.constructor) {
  			return { ...from };
  		}
  		else if (Array === from.constructor) {
  			return [ ...from ];
  		}
  		else {
  			return new from.constructor(from);
  		}
  
  	}
  	else {
  		return from;
  	}
  
  };
  