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
/
mockers
/
apply.js
10 lines
(9 loc)
•
175 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Mocker
}
from
'../mocker'
;
/** * apply the function for random. *
@param
func
*
@returns
{
Mocker
} */
export
function
apply
(
func
) {
return
new
Mocker
(func); }