Module table_merge.lua

📑 Source

Merges two tables without mutating them

Usage

table_merge({a = 1, b = 3}, {b = 2, c = 3}) -- {a = 1, b = 2, c = 3}

Functions


# returns... (t1, t2)

Parameters

  • t1 table The table whos properties are overwritten.
  • t2 table The table that is replayed onto the overwritten table.

Returns

    table