Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
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
67
function
insertIf(condition, ...elements) {
68
return
condition ? elements : [];
69
}
70
71
describe(
'duplex'
,
function
() {
72
beforeEach(
function
() {
Callers
1
duplexSpec.mjs
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected