MCPcopy Create free account
hub / github.com/DavidWells/analytics / customThing

Function customThing

packages/analytics-core/tests/plugins-methods.test.js:44–48  ·  view source on GitHub ↗
(one, two, three)

Source from the content-addressed store, hash-verified

42 name: 'two',
43 methods: {
44 customThing(one, two, three) {
45 const { page } = this.instance
46 // Call page from analytics.page
47 page()
48 },
49 niceFunc: (one, two, ...args) => {
50 argsToPassTwo = [ one, two ]
51 // Arrow functions break this.x context. The instance is instead injected as last arg

Callers

nothing calls this directly

Calls 1

pageFunction · 0.85

Tested by

no test coverage detected