changelogs.md


maxmellon/babel-plugin-existential-operator

Repository  -  API  -  Source

0.0.7

Reworked transform to use a helper function.

0.0.5

Update modules

0.0.4

Fix: bracket not working.

before

  foo[bar].isNil

after

  foo[bar] === null || foo[bar] === undefined

0.0.3

Fix: this.someVar.isNil not working.

before

  if (this.someVar.isNil) {
    console.log('nil')
  }

  // become

  if (someVar === null || someVar === undefined) {
      console.log('nil')
  }

Revised

  if (this.someVar.isNil) {
    console.log('nil')
  }

  // become

  if (this.someVar === null || this.someVar === undefined) {
      console.log('nil')
  }