MCPcopy Index your code
hub / github.com/Starcounter-Jack/JSON-Patch / insertIf

Function insertIf

test/spec/duplexSpec.mjs:67–69  ·  view source on GitHub ↗
(condition, ...elements)

Source from the content-addressed store, hash-verified

65}
66
67function insertIf(condition, ...elements) {
68 return condition ? elements : [];
69}
70
71describe('duplex', function() {
72 beforeEach(function() {

Callers 1

duplexSpec.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…