@performant-software/shared-components 1.1.6-beta.1 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/utils/Utility.js.flow +0 -14
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Returns true if passed value is a promise (i.e, has a .then method)
|
|
5
|
-
*
|
|
6
|
-
* @param *
|
|
7
|
-
*
|
|
8
|
-
* @returns {boolean}
|
|
9
|
-
*/
|
|
10
|
-
const isPromise = (value: any) => !!value && typeof value === 'object' && typeof value.then === 'function';
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
isPromise
|
|
14
|
-
};
|