Skip to content

failed to detect async functions #1

@Pyrolistical

Description

@Pyrolistical

Problem

var xIsFunction = require("x-is-function")
xIsFunction(async function() {}) // false

Cause

> Object.prototype.toString.call(async function() {})
'[object AsyncFunction]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Pyrolistical

        Issue actions

          failed to detect async functions · Issue #1 · serapath/x-is-function