check an object is a promise or not in JavaScript

JavaScript

🤖 Code Explanation

This code checks to see if an object is a promise by checking if it has a then function.

Download SpellBox today