UNPKG

eslint-config-lemon

Version:

<div align="center"> <br> <img width="400" src="logo.svg"> <br> <br> </div>

14 lines (11 loc) 282 B
'use strict'; const isObject = value => value !== null && (typeof value === 'object' || typeof value === 'function'); module.exports = value => ( value instanceof Promise || ( isObject(value) && typeof value.then === 'function' && typeof value.catch === 'function' ) );