spreadsheet/ruleJS.all.full.js
function (id) {
        var filtered = instance.matrix.data.filter(function (cell) {
          if (cell.deps) {
            return cell.deps.indexOf(id) > -1;
          }
        });

        var deps = [];
        filtered.forEach(function (cell) {
          if (deps.indexOf(cell.id) === -1) {
            deps.push(cell.id);
          }
        });

        return deps;
      }
function (id) {
        var filtered = instance.matrix.data.filter(function (cell) {
          if (cell.deps) {
            return cell.deps.indexOf(id) > -1;
          }
        });

        var deps = [];
        filtered.forEach(function (cell) {
          if (deps.indexOf(cell.id) === -1) {
            deps.push(cell.id);
          }
        });

        return deps;
      }
function ( id ) { var filtered = instance . matrix . data . filter ( function ( cell ) { if ( cell . deps ) { return cell . deps . indexOf ( id ) > - 1 ; } } ) ; var deps = [ ] ; filtered . forEach ( function ( cell ) { if ( deps . indexOf ( cell . id ) === - 1 ) { deps . push ( cell . id ) ; } } ) ; return deps ; }
get dependencies by element
@param {String} id
@returns {Array}
get dependencies by element