The DS has no eject button. Simply:
If stuck, check for debris in the slot; compressed air helps. For 3DS/2DS, same method applies.