▲ 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 parent 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.