MCPcopy Create free account
hub / github.com/danvk/webdiff / isOneSided

Function isOneSided

ts/utils.ts:50–52  ·  view source on GitHub ↗
(filePair: FilePair)

Source from the content-addressed store, hash-verified

48
49/** Checks whether the diff is one-sided, i.e. an add or delete. */
50export function isOneSided(filePair: FilePair) {
51 return filePair.type == 'add' || filePair.type == 'delete';
52}
53
54/** Determines whether the before & after images are the same size. */
55export function isSameSizeImagePair(filePair: FilePair) {

Callers 3

ImageDiffModeSelectorFunction · 0.90
ImageDiffFunction · 0.90
isSameSizeImagePairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected