cazala / synaptic

architecture-free neural network library for node.js and the browser
http://caza.la/synaptic
Other
6.92k stars 666 forks source link

Adding condition if it is undefined #285

Closed rajendraarora16 closed 6 years ago

cazala commented 6 years ago
undefined == null // true

also I think what you were trying to do is typeof this.optimized == 'undefined' instead of this.optimized == 'undefined', otherwise you are comparing against a literal string 'undefined'