* If you are a simple developer then you can use existing functions like inspect or clone.
* If you are one who wishes to create their own objects like Prototype does, or explore objects as if they were hashes, will turn to extend, keys and values.
| Methods | Description |
| Clones the passed object using shallow copy (copies all the original's properties to the result). | |
| Copies all properties from the source to the destination object. | |
| Returns the debug-oriented string representation of the object. | |
| Returns true if obj is an array, false otherwise. | |
| Returns true if obj is a DOM node of type 1, false otherwise. | |
| Returns true if obj is of type function, false otherwise. | |
| Returns true if obj is an instance of the Hash class, false otherwise. | |
| Returns true if obj is of type number, false otherwise. | |
| Returns true if obj is of type string, false otherwise. | |
| Returns true if obj is of type undefined, false otherwise. | |
| Treats any object as a Hash and fetches the list of its property names. | |
| Returns the return value of obj's toHTML method if it exists, else runs obj through String.interpret. | |
| Returns a JSON string. | |
| Turns an object into its URL-encoded query string representation. | |
| Treats any object as a Hash and fetches the list of its property values. |

No comments:
Post a Comment