UNPKG

kilto

Version:

A state management system with easy async and low boilerplate.

6 lines (4 loc) 172 B
'use strict'; const isPromise = (obj) => obj && typeof obj === 'object' && typeof obj.then === 'function' && typeof obj.catch === 'function'; export default isPromise;