Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

The empty of functions #9

@nodtem66

Description

@nodtem66

Current usage of empty for function is:

empty(function(){}); // true
empty(function(a,b){}); // false

then empty(function() { return 1; }); should be false logically, but it failed (see: Runkit).

According to the jfriend00's answer, coding to check the empty of function's body is no totally reliable.
Shouldn't the empty of all functions be false, like the empty of all boolean?

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

    Issue actions