Skip to content

Instantly share code, notes, and snippets.

View timjacobi's full-sized avatar

Tim Jacobi timjacobi

  • Meta
  • New York, NY
View GitHub Profile
@timjacobi
timjacobi / promise.js
Last active May 18, 2018 10:56
Promise Kata
// Implementation
class Promise {}
// Test Code
const adapter = {
deferred() {
const pending = {};
pending.promise = new Promise((resolver, reject) => {
pending.resolve = resolver;
pending.reject = reject;
Mon May 9 15:36:45 UTC 2016