summaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 17:33:09 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 17:33:09 -0500
commit099847729c471c3ff6e8c28673114eae81c6a4f4 (patch)
tree91fd1ee3268e526712e49fe570cdfc9277a03ddc /ext/mixed
parent7e94fca7c7a07f94de40ddeb56a3f06e43000e25 (diff)
utilIsObject => isObject, move to core.js
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);
+}