Update snippet descriptions
This commit is contained in:
@ -3,7 +3,7 @@ title: isPromiseLike
|
||||
tags: type,function,promise,intermediate
|
||||
---
|
||||
|
||||
Returns `true` if an object looks like a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise), `false` otherwise.
|
||||
Checks if an object looks like a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
|
||||
|
||||
- Check if the object is not `null`, its `typeof` matches either `object` or `function` and if it has a `.then` property, which is also a `function`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user