jspm_packages/npm/babel-core@5.8.38/lib/types/validators.js
function isImmutable(node) {
  if (t.isType(node.type, "Immutable")) return true;

  if (t.isLiteral(node)) {
    if (node.regex) {
      // regexs are mutable
      return false;
    } else {
      // immutable!
      return true;
    }
  } else if (t.isIdentifier(node)) {
    if (node.name === "undefined") {
      // immutable!
      return true;
    } else {
      // no idea...
      return false;
    }
  }

  return false;
}
function isImmutable(node) {
  if (t.isType(node.type, "Immutable")) return true;

  if (t.isLiteral(node)) {
    if (node.regex) {
      // regexs are mutable
      return false;
    } else {
      // immutable!
      return true;
    }
  } else if (t.isIdentifier(node)) {
    if (node.name === "undefined") {
      // immutable!
      return true;
    } else {
      // no idea...
      return false;
    }
  }

  return false;
}
function isImmutable ( node ) { if ( t . isType ( node . type , "Immutable" ) ) return true ; if ( t . isLiteral ( node ) ) { if ( node . regex ) { // regexs are mutable return false ; } else { // immutable! return true ; } } else if ( t . isIdentifier ( node ) ) { if ( node . name === "undefined" ) { // immutable! return true ; } else { // no idea... return false ; } } return false ; }
Check if the input `node` is definitely immutable.
Check if the input node is definitely immutable .