MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / getScreenFromAddress

Function getScreenFromAddress

source/address.js:9–14  ·  view source on GitHub ↗
(address, world = undefined)

Source from the content-addressed store, hash-verified

7};
8
9export const getScreenFromAddress = (address, world = undefined) => {
10 if (address === undefined) return world;
11 const { colour, number } = address;
12 const screen = colour.screens[number];
13 return screen;
14};
15
16export const areAddressesEqual = (a, b) => {
17 if (a.colour !== b.colour) return false;

Callers 4

pickInScreenFunction · 0.90
replaceAddressFunction · 0.90
tryToSurroundScreensFunction · 0.90
hand.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected