object-hierarchy-access
Version:
Get/Set value from/to JS object hierarchy properties
21 lines (18 loc) • 398 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Global</title>
</head>
<body>
<script src="../../../dist/index.js"></script>
<script>
var g = window;
Object.keys(ObjectHierarchyAccess).forEach(function(method) {
g[method] = ObjectHierarchyAccess[method];
});
var obj = set({}, 'a', 'b', 'c', 100);
document.write(get(obj, 'a', 'b', 'c'));
</script>
</body>
</html>