lib/index.js
function hasNoOtherChildNodes() {
  var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  var node = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _postcss2.default.root();

  return nodes.filter(function (child) {
    return child !== node;
  }).length === 0;
}
function hasNoOtherChildNodes() {
  var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  var node = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _postcss2.default.root();

  return nodes.filter(function (child) {
    return child !== node;
  }).length === 0;
}
function hasNoOtherChildNodes ( ) { var nodes = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : [ ] ; var node = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : _postcss2 . default . root ( ) ; return nodes . filter ( function ( child ) { return child !== node ; } ) . length === 0 ; }
Confirm a node has no child nodes other than a specific node.

@param {array} nodes Nodes array to check.
@param {Object} node Node to check.
@return {boolean} Whether or not the node has no other children.
Confirm a node has no child nodes other than a specific node .