@webdeveric/utils
    Preparing search index...

    Variable isPromiseLikeConst

    isPromiseLike: TypePredicateFn<
        {
            then<TResult1 = unknown, TResult2 = never>(
                onfulfilled?:
                    | ((value: unknown) => TResult1 | PromiseLike<TResult1>)
                    | null,
                onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null,
            ): PromiseLike<TResult1 | TResult2>;
        },
    > = ...

    Determine if input has a then function that accepts 2 arguments, matching the shape of a native Promise.

    isPromiseLike(Promise.resolve(42)); // true
    isPromiseLike({ then: () => {} }); // false