UNPKG
@vue-widget/hooks
Version:
latest (0.3.3)
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.1.0
0.0.1
hooks from react to vue
github.com/qianyuhouse/hooks
@vue-widget/hooks
/
lib
/
utils
/
getArray.js
9 lines
(8 loc)
•
219 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
getArray
= getArray;
function
getArray
(
val
) {
return
Array
.
isArray
(val) ? val : val !==
undefined
&& val !==
null
? [val] : []; }