addon/utils/data-processor.js
function (childrenToRemove) {
        var children = this.get('children');
        if(children) {
          children = children.filter(function (child) {
            return childrenToRemove.indexOf(child) === -1; // false if child is in children
          });
          this._setChildren(children);
        }
      }
function (childrenToRemove) {
        var children = this.get('children');
        if(children) {
          children = children.filter(function (child) {
            return childrenToRemove.indexOf(child) === -1; // false if child is in children
          });
          this._setChildren(children);
        }
      }
function ( childrenToRemove ) { var children = this . get ( 'children' ) ; if ( children ) { children = children . filter ( function ( child ) { return childrenToRemove . indexOf ( child ) === - 1 ; // false if child is in children } ) ; this . _setChildren ( children ) ; } }
Filter out the given children from the children array.
@param childrenToRemove {Array} Array of DataNodes to be removed
Filter out the given children from the children array .