▲ Make a JavaScript function support both promise and callback styles at github.com▼2 up and 0 down, posted by sonny 3312 days ago 3 comments
sonny 3312 days ago. link 1 point ▲ ▼Also, while it can be used to "promisify" a callback style function, it is more aimed at library authors.
sonny 3312 days ago. link 1 point ▲ ▼Right but this is 20 lines of code and doesn't require the platform to support Promise at all. EDIT: Additionally while this can be used to Promisify callback functions it is more aimed at library authors.