MCPcopy Create free account
hub / github.com/npkgz/cli-progress / mergeOption

Function mergeOption

lib/options.js:2–8  ·  view source on GitHub ↗
(v, defaultValue)

Source from the content-addressed store, hash-verified

1// utility to merge defaults
2function mergeOption(v, defaultValue){
3 if (typeof v === 'undefined' || v === null){
4 return defaultValue;
5 }else{
6 return v;
7 }
8}
9
10module.exports = {
11 // set global options

Callers 1

options.jsFile · 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…