MCPcopy
hub / github.com/gnab/remark / getOrDefault

Function getOrDefault

src/remark/models/slideshow.js:166–174  ·  view source on GitHub ↗
(key, defaultValue)

Source from the content-addressed store, hash-verified

164 }
165
166 function getOrDefault (key, defaultValue) {
167 return function () {
168 if (options[key] === undefined) {
169 return defaultValue;
170 }
171
172 return options[key];
173 };
174 }
175}
176
177function createSlides (slideshowSource, options) {

Callers 1

SlideshowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected