summaryrefslogtreecommitdiff
path: root/tools/node_modules/babel-eslint/node_modules/@babel/types/lib/utils/shallowEqual.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/babel-eslint/node_modules/@babel/types/lib/utils/shallowEqual.js')
-rw-r--r--tools/node_modules/babel-eslint/node_modules/@babel/types/lib/utils/shallowEqual.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/node_modules/babel-eslint/node_modules/@babel/types/lib/utils/shallowEqual.js b/tools/node_modules/babel-eslint/node_modules/@babel/types/lib/utils/shallowEqual.js
new file mode 100644
index 0000000000..8969d543a8
--- /dev/null
+++ b/tools/node_modules/babel-eslint/node_modules/@babel/types/lib/utils/shallowEqual.js
@@ -0,0 +1,19 @@
+"use strict";
+
+exports.__esModule = true;
+exports.default = shallowEqual;
+
+function shallowEqual(actual, expected) {
+ var keys = Object.keys(expected);
+ var _arr = keys;
+
+ for (var _i = 0; _i < _arr.length; _i++) {
+ var key = _arr[_i];
+
+ if (actual[key] !== expected[key]) {
+ return false;
+ }
+ }
+
+ return true;
+} \ No newline at end of file