question about wiring outlets?
Either way is code compliant.
Make sure the box is large enough for the number of wires and device.
Switches and receptacles count as 2 for the number and size wire.
When 3 cables are used, pigtail for sure!
Yes I am a Pirate, 200 years too late. "Jimmy Buffett"