aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/core.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mixed/js/core.js b/ext/mixed/js/core.js
index 12ed9c1f..513d6211 100644
--- a/ext/mixed/js/core.js
+++ b/ext/mixed/js/core.js
@@ -148,3 +148,7 @@ function stringReplaceAsync(str, regex, replacer) {
parts.push(str.substring(index));
return Promise.all(parts).then(v => v.join(''));
}
+
+function isObject(value) {
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
+}