src/fn/type.js
/**
     * Returns true if the given argument is a promise.
     * @global
     * @example
     * ```javascript
     * bbn.fn.isPromise(bbn.fn.post('myUrl'));
     * // true
     * bbn.fn.isPromise(setTimeout(() => {}))
     * // false
     * bbn.fn.isPromise(myVueObject.$nextTick());
     * // true
     * ```
     * @method   isFunction
     * @memberof bbn.fn
     * @returns  {Boolean}
     */
Returns true if the given argument is a promise.
Returns true if the given argument is a promise .
isPromise() {
      if (!arguments.length) return false;
      for ( let a of arguments ){
        if ( {}.toString.apply(a) !== '[object Promise]' ){
          return false
        }
      }
      return true;
    }
isPromise ( ) { if ( ! arguments . length ) return false ; for ( let a of arguments ) { if ( { } . toString . apply ( a ) !== '[object Promise]' ) { return false } } return true ; }
Returns true if the given argument is a promise.
Returns true if the given argument is a promise .