Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethagnawl/we_have_a_cloner
we_have_a_cloner clones objects!
https://github.com/ethagnawl/we_have_a_cloner
Last synced: about 2 months ago
JSON representation
we_have_a_cloner clones objects!
- Host: GitHub
- URL: https://github.com/ethagnawl/we_have_a_cloner
- Owner: ethagnawl
- Created: 2011-05-18T03:28:12.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-06-11T18:15:16.000Z (over 13 years ago)
- Last Synced: 2024-10-14T19:07:45.809Z (3 months ago)
- Language: JavaScript
- Homepage: http://jsbin.com/ifuko5/4/
- Size: 93.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
I wrote we_have_a_cloner with the intentions of submitting it to The CoffeeScript Cookbook (http://coffeescriptcookbook.com), but someone beat me to it.
So, here it will live out the rest of its life as a function that will gladly clone any object, to any depth.
... and in case you're wondering where the name came from:
Frylock: What is this?
Mothmonsterman: Oh that's Carl. You guy's know him? He's got a real mouth on him.
Carl: Oohhhh. My stomach is vibratin'.
Master Shake: Oh, hey Carl! I didn't recognize you with all that... silk.
Carl: Please God. Cut me down, here Fryman.
Frylock: What've you done to him?
Mothmonsterman: I just layed a thousand of my eggs inside of his esophagus. Yeah. You know, I need to propagate my species and he's being a baby about it.
Frylock: Well, you know we have a cloner.
Mothmonsterman: Serious?