Skip to content

Instantly share code, notes, and snippets.

@m0rjc
m0rjc / Promise.js
Last active August 29, 2015 14:17
My second attempt at Javascript Promises (aka Futures), in native Javascript
/**
* Implementation of Javascript Promises.
* A simplified version of the U4.Promise framework I wrote for Unit4 in 2013.
* Building it up as I need it.
*/
var Promise = (function(){
/**
* @private
* Copy properties from one object to another.
* @param target