Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Puzzling JS Error Date: Sat, 11 Apr 2015 23:42:18 +0200 Organization: PointedEars Software (PES) Lines: 22 Message-ID: <2172415.g2VhMMEByA@PointedEars.de> References: <1798717.ojboOnzLPd@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1428788663 1271 eJwFwYEBwDAEBMCVCP9hnKD2H6F3MCr7OkHHYo1jr9mCFFdExmjHV+4HFdkq70iVz0rlyfsDDasQnA== (11 Apr 2015 21:44:23 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 11 Apr 2015 21:44:23 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwYEBwCAIA7CXQCjVc5SV/09YgiivZhYqMZjYdPVt2XCky/r8lU9KzOm3mICtI+reeV9bYZ3YJ5yE9Q99FxX+ Cancel-Lock: sha1:WFmmbl7uaPIfT5vsq/8BRvre4fc= X-NNTP-Posting-Host: eJwNxskBwCAMA7CVctmEcSip9x+h1UtIOu8qggVBrxsf9r+s9G7ORFB7eO1YzAZcEaYUnGd9DfoQcw== Xref: csiph.com comp.lang.javascript:27327 Joao Rodrigues wrote: > On 04/11/2015 11:15 AM, Thomas 'PointedEars' Lahn wrote: >> or in my case I have written >> >> if (typeof jsx.net == "undefined") > […] > >> BTW, The “!==” instead of “!=” adds no efficiency here as both operands >> are of the same type, String; however, it may quiet code linters such as >> JSHint. > > JSLInt sees an error here: "Unexpected 'typeof'. Use '===' to compare > directly with undefined." Read again. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.