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
Post a Comment