MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / parseOpts

Function parseOpts

libraries/p5.js:29718–29731  ·  view source on GitHub ↗
(options, defaults)

Source from the content-addressed store, hash-verified

29716}
29717
29718function parseOpts(options, defaults) {
29719
29720 if (typeof options !== 'object') {
29721 options = defaults;
29722 }
29723 else {
29724 for (var key in defaults) {
29725 if (typeof options[key] === 'undefined') {
29726 options[key] = defaults[key];
29727 }
29728 }
29729 }
29730 return options;
29731}
29732
29733//////////////////////// Helpers ////////////////////////////
29734

Callers 1

pathToPointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected