Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit eea70f4

Browse files
miorelfacebook-github-bot
authored andcommitted
Auto-fix all auto-fixable eqeqeq problems
Reviewed By: zpao Differential Revision: D8248952 fbshipit-source-id: dad12657addf2a39d9e23b46f7995f58078afd09
1 parent 0ce20bc commit eea70f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

website/static/lib/Draft.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ module.exports = ContentBlock;
17931793
* @return string Renderable space-separated CSS className.
17941794
*/
17951795
function cx(classNames) {
1796-
if (typeof classNames == 'object') {
1796+
if (typeof classNames === 'object') {
17971797
return Object.keys(classNames).filter(function (className) {
17981798
return classNames[className];
17991799
}).map(replace).join(' ');
@@ -11430,7 +11430,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/**
1143011430
// check if given property is actually array
1143111431
if (typeof q === OBJ_TYPE && q.length > 0) {
1143211432
if (q.length == 2) {
11433-
if (typeof q[1] == FUNC_TYPE) {
11433+
if (typeof q[1] === FUNC_TYPE) {
1143411434
// assign modified match
1143511435
this[q[0]] = q[1].call(this, match);
1143611436
} else {
@@ -13974,14 +13974,14 @@ function hasArrayNature(obj) {
1397413974
// not null/false
1397513975
!!obj && (
1397613976
// arrays are objects, NodeLists are functions in Safari
13977-
typeof obj == 'object' || typeof obj == 'function') &&
13977+
typeof obj === 'object' || typeof obj === 'function') &&
1397813978
// quacks like an array
1397913979
'length' in obj &&
1398013980
// not window
1398113981
!('setInterval' in obj) &&
1398213982
// no DOM node should be considered an array-like
1398313983
// a 'select' element has 'length' and 'item' properties on IE8
13984-
typeof obj.nodeType != 'number' && (
13984+
typeof obj.nodeType !== 'number' && (
1398513985
// a real array
1398613986
Array.isArray(obj) ||
1398713987
// arguments

0 commit comments

Comments
 (0)