UNPKG
@bemedev/app-react
Version:
beta (0.0.3-beta)
latest (0.2.0)
0.2.0
0.1.1
0.1.0
0.0.3-beta
0.0.2-beta
0.0.1-beta
Use app-ts inside react
github.com/chlbri/app-react
chlbri/app-react
@bemedev/app-react
/
lib
/
utils
/
reFunction.cjs
13 lines
(10 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
function
_reFunction
(
fn, bind
) {
return
(
...args
) =>
fn.
bind
(bind)(...args); }
function
reFunction
(
object
, fn
) {
const
_fn =
object
[fn];
return
_reFunction
(_fn,
object
); }
exports
.
reFunction
= reFunction;
//# sourceMappingURL=reFunction.cjs.map