Files
image-sequencer/src/util/getDefaults.js
Tanish eb81b7de4b standardised util functions comments (#1805)
* standardised util functions comments

* Update pixelSetter.js

* Update pixelSetter.js

* Update pixelSetter.js

Co-authored-by: Harsh Khandeparkar <34770591+HarshKhandeparkar@users.noreply.github.com>
2021-02-10 10:19:36 -05:00

11 lines
276 B
JavaScript

/** Parses the defaults and gets the input which is available. */
module.exports = function(info){
var defaults = {};
for (var key in info.inputs) {
if (info.inputs.hasOwnProperty(key)) {
defaults[key] = info.inputs[key].default;
}
}
return defaults;
};