JS Periksa apakah fungsi itu janji

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