MCPcopy Index your code
hub / github.com/cli-table/cli-table3 / mergeOptions

Function mergeOptions

src/utils.js:242–249  ·  view source on GitHub ↗
(options, defaults)

Source from the content-addressed store, hash-verified

240}
241
242function mergeOptions(options, defaults) {
243 options = options || {};
244 defaults = defaults || defaultOptions();
245 let ret = Object.assign({}, defaults, options);
246 ret.chars = Object.assign({}, defaults.chars, options.chars);
247 ret.style = Object.assign({}, defaults.style, options.style);
248 return ret;
249}
250
251// Wrap on word boundary
252function wordWrap(maxLength, input) {

Callers 1

utils-test.jsFile · 0.85

Calls 1

defaultOptionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…