editor/js/reaction.js
// Convert an Enum protobuf class to an arrray of strings.
Convert an Enum protobuf class to an arrray of strings.
Convert an Enum protobuf class to an arrray of strings .
function enumToStrings(protoEnum) {
  const types = Object.entries(protoEnum);
  const strings = [];
  for (let i = 0; i < types.length; i++) {
    strings.push(types[i][0]);
  }
  return strings;
}
function enumToStrings ( protoEnum ) { const types = Object . entries ( protoEnum ) ; const strings = [ ] ; for ( let i = 0 ; i < types . length ; i ++ ) { strings . push ( types [ i ] [ 0 ] ) ; } return strings ; }
Convert an Enum protobuf class to an arrray of strings.
Convert an Enum protobuf class to an arrray of strings .