UNPKG
automizy-js
Version:
latest (1.0.0)
1.0.0
Automizy widget collection
developers.automizy.com/automizyjs
automizy-js
/
src
/
functions
/
ref.js
10 lines
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
define
([
'automizy/core'
],
function
(
) { $A.
ref
=
function
(
obj, str
) { str = str.
split
(
"."
);
for
(
var
i =
0
; i < str.
length
; i++) obj = obj[str[i]];
return
obj; } });