code: function inputsOf(inputs, def) {
      var res = [];
      var n = inputs.length;
      var i = -1;
      var input;
  
      while (++i < n) {
        input = inputs[i];
        if (input.def === def) res.push(input);
      }
  
      return res;
    }
docs: utils