MCPcopy Create free account
hub / github.com/aspnet/AzureSignalR-samples / flatten

Function flatten

samples/Whiteboard/wwwroot/script.js:474–478  ·  view source on GitHub ↗
(ts, f)

Source from the content-addressed store, hash-verified

472 prev = started = null;
473 };
474 let flatten = (ts, f) => {
475 let ps = [];
476 for (let i = 0; i < ts.length; i++) ps.push(f(ts[i]));
477 return ps;
478 };
479 const whiteboard = document.querySelector('#whiteboard');
480 whiteboard.addEventListener('mousedown', e => {
481 if (e.button !== 0) return;

Callers 1

script.jsFile · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected