mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
* standardised util functions comments * Update pixelSetter.js * Update pixelSetter.js * Update pixelSetter.js Co-authored-by: Harsh Khandeparkar <34770591+HarshKhandeparkar@users.noreply.github.com>
11 lines
276 B
JavaScript
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;
|
|
};
|