UNPKG
webdriverio-automation
Version:
latest (1.0.0)
1.0.0
WebdriverIO-Automation android ios project
webdriverio-automation
/
node_modules
/
is-arrayish
/
index.js
11 lines
(8 loc)
•
204 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
;
module
.
exports
=
function
isArrayish
(
obj
) {
if
(!obj) {
return
false
; }
return
obj
instanceof
Array
||
Array
.
isArray
(obj) || (obj.
length
>=
0
&& obj.
splice
instanceof
Function
); };