MCPcopy Create free account
hub / github.com/Khan/perseus / splitUpChunk

Function splitUpChunk

packages/perseus-editor/src/diffs/shared/string-array-diff.ts:34–41  ·  view source on GitHub ↗
(chunk: ImageEntry)

Source from the content-addressed store, hash-verified

32// Turn a chunk (which contains an array of values and a status)
33// into an array of values, each with the same status
34function splitUpChunk(chunk: ImageEntry): ImageDiff[] {
35 return chunk.value.map((value) => {
36 return {
37 value: value,
38 status: statusFor(chunk),
39 };
40 });
41}
42
43// Apply `fn` to every element in `lst` and then concatenate all the results
44// http://clojuredocs.org/clojure_core/clojure.core/mapcat

Callers

nothing calls this directly

Calls 1

statusForFunction · 0.85

Tested by

no test coverage detected