method Creature.prototype.compact Creature.prototype.compact(): Creature | undefined Compact the creature by removing redundant neurons and connections. Return Type Creature | undefined A new compacted creature or undefined if no compaction occurred.