In all civil cases arising in justice courts wherein an undertaking is required, the plaintiff or defendant may deposit with the justice a sum of money equal to the amount required by the undertaking, which sum of money shall be taken as security in place of the undertaking.
[1911 CPA § 874; RL § 5816; NCL § 9363]