MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / getNodeIndex

Function getNodeIndex

docs/static/js/bulma-carousel.js:1005–1007  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1003};
1004
1005var getNodeIndex = function getNodeIndex(node) {
1006 return [].concat(_toConsumableArray(node.parentNode.children)).indexOf(node);
1007};
1008var camelize = function camelize(str) {
1009 return str.replace(/-(\w)/g, toUpper);
1010};

Callers

nothing calls this directly

Calls 1

_toConsumableArrayFunction · 0.85

Tested by

no test coverage detected