mirror of
https://github.com/facebook/lexical.git
synced 2025-05-20 08:37:41 +08:00
Use for...of for performance optimizations (#1509)
* Use for...of for performance optimizations * Fix ignores * Remove console times
This commit is contained in:

committed by
acywatson

parent
7dbba00306
commit
db26e25d7a
@ -20,7 +20,6 @@ function invertObject(targetObj /* : ErrorMap */) /* : ErrorMap */ {
|
||||
const result = {};
|
||||
const mapKeys = Object.keys(targetObj);
|
||||
|
||||
// eslint-disable-next-line no-for-of-loops/no-for-of-loops
|
||||
for (const originalKey of mapKeys) {
|
||||
const originalVal = targetObj[originalKey];
|
||||
|
||||
|
Reference in New Issue
Block a user