Skip to content

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed Jun 8, 2017
1 parent 8c7604c commit 215323f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ const FALLBACK_HANDLER = Symbol("fallback handler");

module.exports = ({ types: t }) => {
const undef = t.unaryExpression("void", t.numericLiteral(0));

function isUndef(ob) {
return ob === undefined || t.isIdentifier(ob, { name: "undefined" }) || t.isUnaryExpression(ob, { operator: 'void' })
return (
ob === undefined ||
t.isIdentifier(ob, { name: "undefined" }) ||
t.isUnaryExpression(ob, { operator: "void" })
);
}

function defaultZero(cb) {
Expand Down

0 comments on commit 215323f

Please sign in to comment.