UNPKG
me-module-utils
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.3
1.0.2
1.0.1
1.0.0
Me Module utils
me-module-utils
/
src
/
meFactory.js
18 lines
(15 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
{cloneDeep}
from
'lodash'
;
/** * 默认 `me` 对象 * *
@const
{
Object
} */
export
const
DEFAULT_ME_PROEPRTY
= {
_modules
: {} };
/** * 返回一个默认 `me` 对象 * *
@returns
{
Object
} */
export
const
createEmptyMe
= (
) =>
cloneDeep
(
DEFAULT_ME_PROEPRTY
);