aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/isArrayLike.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/isArrayLike.js')
-rw-r--r--src/core/isArrayLike.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/isArrayLike.js b/src/core/isArrayLike.js
index 988c483d3..bc24b32f4 100644
--- a/src/core/isArrayLike.js
+++ b/src/core/isArrayLike.js
@@ -1,7 +1,7 @@
-import toType from "./toType.js";
-import isWindow from "../var/isWindow.js";
+import { toType } from "./toType.js";
+import { isWindow } from "../var/isWindow.js";
-function isArrayLike( obj ) {
+export function isArrayLike( obj ) {
var length = !!obj && obj.length,
type = toType( obj );
@@ -13,5 +13,3 @@ function isArrayLike( obj ) {
return type === "array" || length === 0 ||
typeof length === "number" && length > 0 && ( length - 1 ) in obj;
}
-
-export default isArrayLike;