UNPKG
mezzanine
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
Fantasy land union types with pattern matching
github.com/zerobias/mezzanine
zerobias/mezzanine
mezzanine
/
es
/
utils
/
arrify.js
13 lines
(9 loc)
•
211 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ flatten }
from
'ramda'
;
//$FlowIssue
export
function
arrify
(
list
) {
if
(
Array
.
isArray
(list))
return
flatten
(list);
else
return
[list]; }
export
default
arrify;
//# sourceMappingURL=arrify.js.map