1 | var _curry1 =
|
2 |
|
3 | require("./internal/_curry1");
|
4 |
|
5 | var _isArguments =
|
6 |
|
7 | require("./internal/_isArguments");
|
8 |
|
9 | var _isArray =
|
10 |
|
11 | require("./internal/_isArray");
|
12 |
|
13 | var _isObject =
|
14 |
|
15 | require("./internal/_isObject");
|
16 |
|
17 | var _isString =
|
18 |
|
19 | require("./internal/_isString");
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | var empty =
|
46 |
|
47 | _curry1(function empty(x) {
|
48 | return x != null && typeof x['fantasy-land/empty'] === 'function' ? x['fantasy-land/empty']() : x != null && x.constructor != null && typeof x.constructor['fantasy-land/empty'] === 'function' ? x.constructor['fantasy-land/empty']() : x != null && typeof x.empty === 'function' ? x.empty() : x != null && x.constructor != null && typeof x.constructor.empty === 'function' ? x.constructor.empty() : _isArray(x) ? [] : _isString(x) ? '' : _isObject(x) ? {} : _isArguments(x) ? function () {
|
49 | return arguments;
|
50 | }() : void 0
|
51 | ;
|
52 | });
|
53 |
|
54 | module.exports = empty; |
\ | No newline at end of file |