UNPKG
miz
Version:
latest (1.0.1)
1.0.1
1.0.0
0.0.1-beta.1
Generate mock data, just like a person.
github.com/hustcc/miz
hustcc/miz
miz
/
esm
/
mocker.js
14 lines
(13 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/** * mocker class */
var
Mocker
=
/**
@class
*/
(
function
(
) {
function
Mocker
(
m
) {
this
.
m
= m; }
Mocker
.
prototype
.
mock
=
function
(
) {
return
this
.
m
(); };
return
Mocker
; }());
export
{
Mocker
};