MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / getFullScope

Function getFullScope

dom/src/utils.ts:32–37  ·  view source on GitHub ↗
(namespace: Array<String>)

Source from the content-addressed store, hash-verified

30 * scopes in the namespace.
31 */
32export function getFullScope(namespace: Array<String>): string {
33 return namespace
34 .filter(c => c.indexOf(SCOPE_PREFIX) > -1)
35 .map(c => c.replace(SCOPE_PREFIX, ''))
36 .join('-');
37}
38
39export function getSelectors(namespace: Array<String>): string {
40 return namespace.filter(c => c.indexOf(SCOPE_PREFIX) === -1).join(' ');

Callers 4

callMethod · 0.90
createDestinationMethod · 0.90
constructorMethod · 0.90
eventsMethod · 0.90

Calls 2

mapMethod · 0.65
filterMethod · 0.65

Tested by

no test coverage detected