javascript - What does this JS snippet do? `"development" !== 'production'` -


it's on react.js file:

if ("development" !== 'production') {   var typeofspec = typeof spec;   var ismixinvalid = typeofspec === 'object' && spec !== null;    "development" !== 'production' ? warning(ismixinvalid, '%s: you\'re attempting include mixin either null ' + 'or not object. check mixins included component, ' + 'as mixins include themselves. ' + 'expected object got %s.', constructor.displayname || 'reactclass', spec === null ? null : typeofspec) : void 0; } 

when ever false? in way useful? autogenerated?


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -