mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 23:01:30 +00:00
refactor(common/modules/table): small refactor
This commit is contained in:
@@ -119,12 +119,11 @@ function ESX.Table.Concat(t1, t2)
|
||||
end
|
||||
|
||||
function ESX.Table.Join(t, sep)
|
||||
local sep = sep or ','
|
||||
local str = ''
|
||||
|
||||
for i = 1, #t, 1 do
|
||||
if i > 1 then
|
||||
str = str .. sep
|
||||
str = str .. (sep or ',')
|
||||
end
|
||||
|
||||
str = str .. t[i]
|
||||
|
||||
Reference in New Issue
Block a user