Object.prototype.clone()

Description:

Created a cloned object by itself.

Parameters:

  • N/A

Returned Value:

  • Cloned object.

Sample:

var obj = { project: "JavaScript Prototype Extensions", Owner: "Rynn Wang" };
var clonedObj = obj.clone();
//Result: clonedObj = { project: "JavaScript Prototype Extensions", Owner: "Rynn Wang" };

Last edited Aug 22, 2012 at 8:06 AM by rynnwang, version 1

Comments

No comments yet.