Gabe's Blog

About

Passing Promises in JS

19 October, 2019
Tags: javascript promise 

When using promises in a JavaScript function that is to be called by another function, make sure the parent function returns the promise! Also, make sure that any objects intended to be returned via a promise live within the scope of the promise.