summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/catapult/third_party/polymer2/bower_components/moment/src/lib/utils/is-object-empty.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/catapult/third_party/polymer2/bower_components/moment/src/lib/utils/is-object-empty.js')
-rw-r--r--chromium/third_party/catapult/third_party/polymer2/bower_components/moment/src/lib/utils/is-object-empty.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/third_party/catapult/third_party/polymer2/bower_components/moment/src/lib/utils/is-object-empty.js b/chromium/third_party/catapult/third_party/polymer2/bower_components/moment/src/lib/utils/is-object-empty.js
new file mode 100644
index 00000000000..1f2d939a579
--- /dev/null
+++ b/chromium/third_party/catapult/third_party/polymer2/bower_components/moment/src/lib/utils/is-object-empty.js
@@ -0,0 +1,8 @@
+export default function isObjectEmpty(obj) {
+ var k;
+ for (k in obj) {
+ // even if its not own property I'd still call it non-empty
+ return false;
+ }
+ return true;
+}