simplify to.isFalsyExpression method

This commit is contained in:
Sebastian McKenzie 2015-02-04 08:25:40 +11:00
parent 618c6a8e67
commit c35f041091

View File

@ -127,9 +127,7 @@ t.toComputedKey = function (node, key) {
}; };
/* /*
* Shallowly checks to see if the passed `node` will evaluate to a * Shallowly checks to see if the passed `node` is falsy.
* falsy. This is if `node` is a `Literal` and `value` is falsy or
* `node` is an `Identifier` with a name of `undefiend`.
* *
* @param {Object} node * @param {Object} node
* @returns {Boolean} * @returns {Boolean}