JS Sprawdź, czy funkcja jest obiecująca

console.log(prom instanceof Promise); // true
florinrelea