MCPcopy
hub / github.com/NUKnightLab/TimelineJS3 / getObjectAttributeByIndex

Function getObjectAttributeByIndex

src/js/core/Util.js:599–613  ·  view source on GitHub ↗
(obj, index)

Source from the content-addressed store, hash-verified

597}
598
599export function getObjectAttributeByIndex(obj, index) {
600 if (typeof obj != 'undefined') {
601 var i = 0;
602 for (var attr in obj) {
603 if (index === i) {
604 return obj[attr];
605 }
606 i++;
607 }
608 return "";
609 } else {
610 return "";
611 }
612
613}
614
615let base58 = (function(alpha) {
616 var alphabet = alpha || '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ',

Callers 1

createMediaMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected